podman/test/dockerpy
Sujil02 37428df4c2 Modify py test to start stop system service for each test
Start stop system service for each test class to make it east to integrate to CI
Adds more tests
Add some common methods shared between images and containers test.

Signed-off-by: Sujil02 <sushah@redhat.com>
2020-06-07 22:27:01 -04:00
..
README.md Modify py test to start stop system service for each test 2020-06-07 22:27:01 -04:00
__init__.py Modify py test to start stop system service for each test 2020-06-07 22:27:01 -04:00
common.py Modify py test to start stop system service for each test 2020-06-07 22:27:01 -04:00
constant.py Modify py test to start stop system service for each test 2020-06-07 22:27:01 -04:00
containers.py Modify py test to start stop system service for each test 2020-06-07 22:27:01 -04:00
images.py Modify py test to start stop system service for each test 2020-06-07 22:27:01 -04:00

README.md

Dockerpy regression test

Python test suite to validate Podman endpoints using dockerpy library

Running tests

To run the tests locally in your sandbox:

Run the entire test

sudo PYTHONPATH=/usr/bin/python python -m dockerpy.images

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

sudo PYTHONPATH=/usr/bin/python python -m unittest -v dockerpy.images

Run a specific test class

sudo PYTHONPATH=/usr/bin/python python -m unittest -v dockerpy.images.TestImages

Run a specific test within the test class

sudo PYTHONPATH=/usr/bin/python python -m unittest -v dockerpy.images.TestImages.test_list_images