File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2537,6 +2537,12 @@ def _log_fixture_stack(self, what):
2537
2537
step = what .ljust (8 ), # align the output to TEARDOWN
2538
2538
scope = self .scope [0 ].upper (),
2539
2539
fixture = self .argname ))
2540
+
2541
+ if what == 'SETUP' :
2542
+ deps = sorted (arg for arg in self .argnames if arg != 'request' )
2543
+ if deps :
2544
+ tw .write (' (fixtures used: {})' .format (', ' .join (deps )))
2545
+
2540
2546
if hasattr (self , 'cached_param' ):
2541
2547
tw .write ('[{}]' .format (self .cached_param ))
2542
2548
Original file line number Diff line number Diff line change @@ -91,11 +91,10 @@ def show_test_item(item):
91
91
tw = item .config .get_terminal_writer ()
92
92
tw .line ()
93
93
tw .write (' ' * 8 )
94
- tw .write ('{} ' .format (item ._nodeid ))
94
+ tw .write ('{}' .format (item ._nodeid ))
95
95
used_fixtures = sorted (item ._fixtureinfo .name2fixturedefs .keys ())
96
96
if used_fixtures :
97
- tw .write ('fixtures: ' )
98
- tw .write (', ' .join (used_fixtures ))
97
+ tw .write (' (fixtures used: {})' .format (', ' .join (used_fixtures )))
99
98
100
99
def pytest_runtest_setup (item ):
101
100
item .session ._setupstate .prepare (item )
You can’t perform that action at this time.
0 commit comments