Skip to content

Commit 4f33eb5

Browse files
committed
minor: flake8 fixes
1 parent 91ece5e commit 4f33eb5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test_pytest_mock.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_call(self, mocker):
188188

189189
def test_repr_with_no_name(self, mocker):
190190
stub = mocker.stub()
191-
assert not "name" in repr(stub)
191+
assert "name" not in repr(stub)
192192

193193
def test_repr_with_name(self, mocker):
194194
test_name = "funny walk"
@@ -628,7 +628,7 @@ def test_assert_called_with_unicode_arguments(mocker):
628628

629629

630630
def test_plain_stopall(testdir):
631-
"""Calling patch.stopall() in a test would cause an error during unconfigure (#137)"""
631+
"""patch.stopall() in a test should not cause an error during unconfigure (#137)"""
632632
testdir.makepyfile(
633633
"""
634634
import random

tox.ini

+3
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ commands = pre-commit run --all-files --show-diff-on-failure
2121

2222
[pytest]
2323
addopts = -ra
24+
25+
[flake8]
26+
max-line-length = 88

0 commit comments

Comments
 (0)