def test_show_fixtures_and_execute_test(testdir):
 p = testdir.makepyfile('\n        import pytest\n        @pytest.fixture\n        def arg():\n            assert True\n        def test_arg(arg):\n            assert False\n    ')
 result = testdir.runpytest('--setup-show', p)
 assert (result.ret == 1)
 result.stdout.fnmatch_lines(['*SETUP    F arg*', '*test_arg (fixtures used: arg)F', '*TEARDOWN F arg*'])

def test_show_fixtures_and_execute_test ( testdir ) : p = testdir . makepyfile ( '\n        import pytest\n        @pytest.fixture\n        def arg():\n            assert True\n        def test_arg(arg):\n            assert False\n    ' ) result = testdir . runpytest ( '--setup-show' , p ) assert ( result . ret == 1 ) result . stdout . fnmatch_lines ( [ '*SETUP    F arg*' , '*test_arg (fixtures used: arg)F' , '*TEARDOWN F arg*' ] )
verifies that setups are shown and tests are executed .