podman/test/python/dockerpy
Daniel J Walsh 526f01cdf5
Fix up errors found by codespell
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-11 06:14:25 -04:00
..
tests Fix up errors found by codespell 2020-09-11 06:14:25 -04:00
__init__.py Fix python dockerpy tests 2020-06-24 12:40:55 -07:00
README.md Fix python dockerpy tests 2020-06-24 12:40:55 -07:00

Dockerpy regression test

Python test suite to validate Podman endpoints using dockerpy library

Running Tests

To run the tests locally in your sandbox (Fedora 32):

# dnf install python3-docker

Run the entire test suite

# cd test/python/dockerpy
# PYTHONPATH=/usr/bin/python python -m unittest discover .

Passing the -v option to your test script will instruct unittest.main() to enable a higher level of verbosity, and produce detailed output:

# cd test/python/dockerpy
# PYTHONPATH=/usr/bin/python python -m unittest -v discover .

Run a specific test class

# cd test/python/dockerpy
# PYTHONPATH=/usr/bin/python python -m unittest -v tests.test_images

Run a specific test within the test class

# cd test/python/dockerpy
# PYTHONPATH=/usr/bin/python python -m unittest tests.test_images.TestImages.test_import_image