Skip to content

Commit

Permalink
Updated test constraints for mock assert_called() and assert_called_o…
Browse files Browse the repository at this point in the history
…nce()
  • Loading branch information
bvitnik authored and mattclay committed Jan 14, 2019
1 parent afb4841 commit a69e9e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/runner/requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ virtualenv < 16.0.0 ; python_version < '2.7' # virtualenv 16.0.0 and later requi
pyopenssl < 18.0.0 ; python_version < '2.7' # pyOpenSSL 18.0.0 and later require python 2.7 or later
pyfmg == 0.6.1 # newer versions do not pass current unit tests
pycparser < 2.19 ; python_version < '2.7' # pycparser 2.19 and later require python 2.7 or later
mock >= 2.0.0 # needed for features backported from Python 3.6 unittest.mock (assert_called, assert_called_once...)
pytest-mock >= 1.4.0 # needed for mock_use_standalone_module pytest option

# freeze pylint and its requirements for consistent test results
astroid == 2.0.4
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ passenv =
[pytest]
xfail_strict = true
cache_dir = .pytest_cache
mock_use_standalone_module = true

[flake8]
# These are things that the devs don't agree make the code more readable
Expand Down

0 comments on commit a69e9e3

Please sign in to comment.