Skip to content

Commit

Permalink
Add tests for libyear, using pytest-vcr for reproducable output (#25)
Browse files Browse the repository at this point in the history
* Add tests for libyear, using pytest-vcr for reproducable output

* Add separate file for test requirements and include pytest-vcr
  • Loading branch information
kbakk authored Mar 3, 2021
1 parent df812f3 commit ecbacf9
Show file tree
Hide file tree
Showing 5 changed files with 10,110 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@
"python-dateutil>=2.7.0",
],
setup_requires=["pytest-runner"],
tests_require=["pytest"],
)
2 changes: 2 additions & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest>=6.0,<7.0
pytest-vcr>=1.0,<1.1
Loading

0 comments on commit ecbacf9

Please sign in to comment.