add xfailing test for issue 179

This commit is contained in:
Ronny Pfannschmidt 2012-08-22 19:49:50 +02:00
parent 45693c2847
commit 1318df4f5b
1 changed files with 18 additions and 0 deletions

View File

@ -1664,6 +1664,24 @@ class TestFuncargFactory:
"*2 passed*"
])
@pytest.mark.xfail(reason="factorydef passed to tw.line")
def test_factory_uses_unknown_funcarg_error(self, testdir):
testdir.makepyfile("""
import pytest
@pytest.factory(scope='session')
def arg1(missing):
return
def test_missing(arg1):
pass
""")
result = testdir.runpytest()
result.stdout.fnmatch_lines([
"*LookupError: no factory found for argument 'missing'"
])
class TestResourceIntegrationFunctional:
def test_parametrize_with_ids(self, testdir):