Skip to content

Commit

Permalink
Update pytest and pytest sugar, fix test (#1312)
Browse files Browse the repository at this point in the history
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.5 to 5.4.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@5.3.5...5.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Update pytest and pytest-sugar, fix test for

- Teemu/pytest-sugar#188 makes pytest-sugar compatible with pytest 5.4+
- pytest 5.4.0 flipped the signs for assert statement display, so this flips the string to match.
Fix test_fastapi.sh permissions
  • Loading branch information
StephenBrown2 committed Apr 30, 2020
1 parent 9238e3d commit a5b0e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/requirements.txt
Expand Up @@ -7,7 +7,7 @@ isort==4.3.21
mypy==0.770
pycodestyle==2.5.0
pyflakes==2.1.1
pytest==5.3.5
pytest==5.4.1
pytest-cov==2.8.1
pytest-mock==3.1.0
pytest-sugar==0.9.3
Expand Down
2 changes: 1 addition & 1 deletion tests/test_validators.py
Expand Up @@ -713,7 +713,7 @@ def check_a(cls, v):

with pytest.raises(ValidationError) as exc_info:
Model(a='snap')
injected_by_pytest = "\nassert 'snap' == 'a'\n - snap\n + a"
injected_by_pytest = "\nassert 'snap' == 'a'\n - a\n + snap"
assert exc_info.value.errors() == [
{'loc': ('a',), 'msg': f'invalid a{injected_by_pytest}', 'type': 'assertion_error'}
]
Expand Down

0 comments on commit a5b0e74

Please sign in to comment.