github.com/containers/podman/v5@v5.1.0-rc1/test/python/docker/compat/README.md (about)

     1  # Docker regression test
     2  
     3  Python test suite to validate Podman endpoints using docker library (aka docker-py).
     4  See [Docker SDK for Python](https://docker-py.readthedocs.io/en/stable/index.html).
     5  
     6  ## Running Tests
     7  
     8  To run the tests locally in your sandbox (Fedora 32,33):
     9  
    10  ```shell
    11  # dnf install python3-docker
    12  ```
    13  
    14  ### Run the entire test suite
    15  
    16  All commands are run from the root of the repository.
    17  
    18  ```shell
    19  # python3 -m unittest discover -s test/python/docker
    20  ```
    21  
    22  Passing the -v option to your test script will instruct unittest.main() to enable a higher level of verbosity, and produce detailed output:
    23  
    24  ```shell
    25  # python3 -m unittest -v discover -s test/python/docker
    26  ```
    27  
    28  ### Run a specific test class
    29  
    30  ```shell
    31  # python3 -m unittest -v test.python.docker.compat.test_images.TestImages
    32  ```
    33  
    34  ### Run a specific test within the test class
    35  
    36  ```shell
    37  # python3 -m unittest test.python.docker.compat.test_images.TestImages.test_tag_valid_image
    38  ```