Fix request.fixturenames to return fixtures created dynamically

Fix #3057
This commit is contained in:
Bruno Oliveira
2018-10-03 18:50:14 -03:00
parent e712adc226
commit 70c7273640
4 changed files with 31 additions and 2 deletions

View File

@@ -756,6 +756,12 @@ class TestRequestBasic(object):
reprec = testdir.inline_run()
reprec.assertoutcome(passed=1)
def test_request_fixturenames_dynamic_fixture(self, testdir):
"""Regression test for #3057"""
testdir.copy_example("fixtures/test_getfixturevalue_dynamic.py")
result = testdir.runpytest()
result.stdout.fnmatch_lines("*1 passed*")
def test_funcargnames_compatattr(self, testdir):
testdir.makepyfile(
"""