diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 1b6c646..13b8b00 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -29,5 +29,5 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pip install pytest + pip install -r test_requirements.txt pytest diff --git a/setup.py b/setup.py index 8896320..1f80311 100644 --- a/setup.py +++ b/setup.py @@ -35,5 +35,4 @@ "python-dateutil>=2.7.0", ], setup_requires=["pytest-runner"], - tests_require=["pytest"], ) diff --git a/test_requirements.txt b/test_requirements.txt new file mode 100644 index 0000000..1dcb1e0 --- /dev/null +++ b/test_requirements.txt @@ -0,0 +1,2 @@ +pytest>=6.0,<7.0 +pytest-vcr>=1.0,<1.1 diff --git a/tests/cassettes/tests.test_libyear/test_libyear_main_output.yaml b/tests/cassettes/tests.test_libyear/test_libyear_main_output.yaml new file mode 100644 index 0000000..8c8fca4 --- /dev/null +++ b/tests/cassettes/tests.test_libyear/test_libyear_main_output.yaml @@ -0,0 +1,10004 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.25.1 + method: GET + uri: https://pypi.org/pypi/typeshed/json + response: + body: + string: "\n
\n