test that tests get rewritten
This commit is contained in:
parent
16b4f54545
commit
971f34147a
|
@ -120,6 +120,10 @@ class TestAssert_reprcompare:
|
||||||
expl = ' '.join(callequal('foo', 'bar'))
|
expl = ' '.join(callequal('foo', 'bar'))
|
||||||
assert 'raised in repr()' not in expl
|
assert 'raised in repr()' not in expl
|
||||||
|
|
||||||
|
@pytest.mark.skipif("config._assertstate.mode != 'on'")
|
||||||
|
def test_rewritten():
|
||||||
|
assert "@py_builtins" in globals()
|
||||||
|
|
||||||
def test_reprcompare_notin():
|
def test_reprcompare_notin():
|
||||||
detail = plugin.pytest_assertrepr_compare('not in', 'foo', 'aaafoobbb')[1:]
|
detail = plugin.pytest_assertrepr_compare('not in', 'foo', 'aaafoobbb')[1:]
|
||||||
assert detail == ["'foo' is contained here:", ' aaafoobbb', '? +++']
|
assert detail == ["'foo' is contained here:", ' aaafoobbb', '? +++']
|
||||||
|
|
Loading…
Reference in New Issue