correctly have the test for issue #[C179 actually fail

This commit is contained in:
Ronny Pfannschmidt 2012-08-22 21:20:18 +02:00
parent 1318df4f5b
commit 503addbf09
1 changed files with 8 additions and 4 deletions

View File

@ -1668,12 +1668,16 @@ class TestFuncargFactory:
def test_factory_uses_unknown_funcarg_error(self, testdir):
testdir.makepyfile("""
import pytest
@pytest.factory(scope='session')
def arg1(missing):
@pytest.factory()
def fail(missing):
return
def test_missing(arg1):
@pytest.factory()
def call_fail(fail):
return
def test_missing(call_fail):
pass
""")
result = testdir.runpytest()