diff options
author | Jhon Honce <jhonce@redhat.com> | 2022-02-28 16:26:43 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2022-03-01 09:06:52 -0700 |
commit | 7729afe9793632673c978b347ccbd999b5152042 (patch) | |
tree | 964f4b72234186163b4a7677c080d84e82790a48 /test/python/docker/conftest.py | |
parent | c39dffe83db9fa3cfa6897b971956821f1bbcce2 (diff) | |
download | podman-7729afe9793632673c978b347ccbd999b5152042.tar.gz podman-7729afe9793632673c978b347ccbd999b5152042.tar.bz2 podman-7729afe9793632673c978b347ccbd999b5152042.zip |
Refactor docker-py compatibility tests
* Add which python client is being used to run tests, see "python
client" below.
* Remove redundate code from test classes
* Update/Add comments to modules and classes
======================================================= test session starts ========================================================
platform linux -- Python 3.10.0, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
python client -- DockerClient
rootdir: /home/jhonce/Projects/go/src/github.com/containers/podman
plugins: requests-mock-1.8.0
collected 33 items
test/python/docker/compat/test_containers.py ...s.............. [ 54%]
test/python/docker/compat/test_images.py ............ [ 90%]
test/python/docker/compat/test_system.py ... [100%]
Note: Follow-up PRs will verify the test results and expand the tests.
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test/python/docker/conftest.py')
-rw-r--r-- | test/python/docker/conftest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python/docker/conftest.py b/test/python/docker/conftest.py new file mode 100644 index 000000000..c63780fa8 --- /dev/null +++ b/test/python/docker/conftest.py @@ -0,0 +1,8 @@ +""" +Configure pytest +""" + + +def pytest_report_header(config): + """Add header to report.""" + return "python client -- DockerClient" |