Skip to content

Commit 189cc59

Browse files
authored
Fix tests expectations with latest pytest (#151)
Fix tests expectations with latest pytest
2 parents b6461ee + 970e4b1 commit 189cc59

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test_pytest_mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def test(mocker):
639639
"*Use -v to get the full diff*",
640640
"*Kwargs:*",
641641
"*assert {} == {'bar': 4}*",
642-
"*Right contains more items:*",
642+
"*Right contains* more item*",
643643
"*{'bar': 4}*",
644644
"*Use -v to get the full diff*",
645645
]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ commands =
1010

1111
[testenv:norewrite]
1212
commands =
13-
pytest test_pytest_mock.py --assert=plain -ra
13+
pytest test_pytest_mock.py --assert=plain
1414

1515
[testenv:linting]
1616
skipsdist = True
@@ -20,7 +20,7 @@ basepython = python3.6
2020
commands = pre-commit run --all-files --show-diff-on-failure
2121

2222
[pytest]
23-
addopts = -ra
23+
addopts = -r a
2424

2525
[flake8]
2626
max-line-length = 88

0 commit comments

Comments
 (0)