Added test to check error diffs with different spacing
This commit is contained in:
parent
11965d1c27
commit
8c622d20ff
|
@ -262,6 +262,23 @@ TESTCASES = [
|
|||
""",
|
||||
id="Compare attrs classes",
|
||||
),
|
||||
pytest.param(
|
||||
"""
|
||||
def test_this():
|
||||
result = '''spam bacon
|
||||
eggs love'''
|
||||
desired = "spam bacon eggs love"
|
||||
assert result == desired
|
||||
""",
|
||||
"""
|
||||
> assert result == desired
|
||||
E AssertionError: assert 'spam bacon\\n eggs love' == 'spam bacon eggs love'
|
||||
E - spam bacon eggs love
|
||||
E + spam bacon
|
||||
E + eggs love
|
||||
""",
|
||||
id='Test "not in" string',
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue