summaryrefslogtreecommitdiff
path: root/test/apiv2/python
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2022-03-02 09:50:48 -0700
committerJhon Honce <jhonce@redhat.com>2022-03-04 10:35:29 -0700
commitdca2e7924ba5346eb78a3b7091d15b316e4e925a (patch)
tree011b4aaee36bc4b0e505ee1dc5e9edd6fc9d35f2 /test/apiv2/python
parented59b89a43c6d9f0bf691e536738fb8450bedfa9 (diff)
downloadpodman-dca2e7924ba5346eb78a3b7091d15b316e4e925a.tar.gz
podman-dca2e7924ba5346eb78a3b7091d15b316e4e925a.tar.bz2
podman-dca2e7924ba5346eb78a3b7091d15b316e4e925a.zip
Move all python tests to pytest
* Add configuration to add report header for python client used in tests * Move report headers into the individual test runners vs runner.sh Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test/apiv2/python')
-rw-r--r--test/apiv2/python/conftest.py8
-rw-r--r--test/apiv2/python/requirements.txt5
2 files changed, 13 insertions, 0 deletions
diff --git a/test/apiv2/python/conftest.py b/test/apiv2/python/conftest.py
new file mode 100644
index 000000000..54a267049
--- /dev/null
+++ b/test/apiv2/python/conftest.py
@@ -0,0 +1,8 @@
+"""
+Configure pytest
+"""
+
+
+def pytest_report_header(config):
+ """Add header to report."""
+ return "python client -- requests library"
diff --git a/test/apiv2/python/requirements.txt b/test/apiv2/python/requirements.txt
new file mode 100644
index 000000000..d9cfc687a
--- /dev/null
+++ b/test/apiv2/python/requirements.txt
@@ -0,0 +1,5 @@
+requests-mock~=1.9.3
+requests~=2.20.0
+setuptools~=50.3.2
+python-dateutil~=2.8.1
+PyYAML~=5.4.1