github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/test/python/docker/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  ```shell
    17  # python3 -m unittest discover test/python/docker
    18  ```
    19  
    20  Passing the -v option to your test script will instruct unittest.main() to enable a higher level of verbosity, and produce detailed output:
    21  
    22  ```shell
    23  # python3 -m unittest -v discover test/python/docker
    24  ```
    25  
    26  ### Run a specific test class
    27  
    28  ```shell
    29  # cd test/python/docker
    30  # python3 -m unittest -v tests.test_images
    31  ```
    32  
    33  ### Run a specific test within the test class
    34  
    35  ```shell
    36  # cd test/python/docker
    37  # python3 -m unittest tests.test_images.TestImages.test_import_image
    38  ```