correctly have the test for issue #[C179 actually fail
This commit is contained in:
parent
1318df4f5b
commit
503addbf09
|
@ -1668,12 +1668,16 @@ class TestFuncargFactory:
|
||||||
def test_factory_uses_unknown_funcarg_error(self, testdir):
|
def test_factory_uses_unknown_funcarg_error(self, testdir):
|
||||||
testdir.makepyfile("""
|
testdir.makepyfile("""
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@pytest.factory(scope='session')
|
@pytest.factory()
|
||||||
def arg1(missing):
|
def fail(missing):
|
||||||
return
|
return
|
||||||
|
|
||||||
def test_missing(arg1):
|
@pytest.factory()
|
||||||
|
def call_fail(fail):
|
||||||
|
return
|
||||||
|
|
||||||
|
def test_missing(call_fail):
|
||||||
pass
|
pass
|
||||||
""")
|
""")
|
||||||
result = testdir.runpytest()
|
result = testdir.runpytest()
|
||||||
|
|
Loading…
Reference in New Issue