black: fix format-sensitive tests
Some of our tests rely on single vs. double quotes, and others rely on specific line numbers in the source. These needed fixing after the switch to Black.
This commit is contained in:
parent
f52f6e99db
commit
c661ca248b
@ -254,7 +254,7 @@ def test_pkg_source(mock_packages):
|
|||||||
|
|
||||||
def test_pkg_canonical_source(mock_packages):
|
def test_pkg_canonical_source(mock_packages):
|
||||||
source = pkg("source", "multimethod")
|
source = pkg("source", "multimethod")
|
||||||
assert "@when('@2.0')" in source
|
assert '@when("@2.0")' in source
|
||||||
assert "Check that multimethods work with boolean values" in source
|
assert "Check that multimethods work with boolean values" in source
|
||||||
|
|
||||||
canonical_1 = pkg("source", "--canonical", "multimethod@1.0")
|
canonical_1 = pkg("source", "--canonical", "multimethod@1.0")
|
||||||
|
@ -306,16 +306,16 @@ def inner():
|
|||||||
due to the following failures:
|
due to the following failures:
|
||||||
inner method raised ValueError: wow!
|
inner method raised ValueError: wow!
|
||||||
File "{0}", \
|
File "{0}", \
|
||||||
line 283, in test_grouped_exception
|
line 290, in test_grouped_exception
|
||||||
inner()
|
inner()
|
||||||
File "{0}", \
|
File "{0}", \
|
||||||
line 280, in inner
|
line 287, in inner
|
||||||
raise ValueError('wow!')
|
raise ValueError("wow!")
|
||||||
|
|
||||||
top-level raised TypeError: ok
|
top-level raised TypeError: ok
|
||||||
File "{0}", \
|
File "{0}", \
|
||||||
line 286, in test_grouped_exception
|
line 293, in test_grouped_exception
|
||||||
raise TypeError('ok')
|
raise TypeError("ok")
|
||||||
"""
|
"""
|
||||||
).format(__file__)
|
).format(__file__)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user