Skip to content

Commit

Permalink
Extract formatting tests (#1785)
Browse files Browse the repository at this point in the history
* Update test versions

* Use parametrize to remove tests duplications

* Extract sources format tests

* Fix mypy errors

* Fix .travis.yml
  • Loading branch information
saroad2 committed Oct 30, 2020
1 parent cabeb5b commit e6cd10e
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 415 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ cache:
directories:
- $HOME/.cache/pre-commit
env:
- TEST_CMD="coverage run -m unittest"
- TEST_CMD="tox -e py"
install:
- pip install coverage coveralls pre-commit
- pip install coverage coveralls pre-commit tox
- pip install -e '.[d]'
script:
- $TEST_CMD
Expand Down
9 changes: 5 additions & 4 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pytest >= 6.0.1
pytest-mock >= 3.2.0
pytest-cases >= 2.1.2
coverage >= 5.2.1
pytest >= 6.1.1
pytest-mock >= 3.3.1
pytest-cases >= 2.3.0
coverage >= 5.3
parameterized >= 0.7.4

0 comments on commit e6cd10e

Please sign in to comment.