Show test function, parameters and the fixtures of the test item.
(item: Item, *, add_space: bool)
| 152 | |
| 153 | |
| 154 | def show_test_item(item: Item, *, add_space: bool) -> None: |
| 155 | class="st">""class="st">"Show test function, parameters and the fixtures of the test item."class="st">"" |
| 156 | tw = item.config.get_terminal_writer() |
| 157 | tw.line() |
| 158 | tw.write(class="st">" " * 8) |
| 159 | tw.write(item.nodeid) |
| 160 | used_fixtures = sorted(getattr(item, class="st">"fixturenames", [])) |
| 161 | if used_fixtures: |
| 162 | tw.write(fclass="st">" (fixtures used: {&class="cm">#x27;, '.join(used_fixtures)})") |
| 163 | if add_space: |
| 164 | tw.write(class="st">" ") |
| 165 | tw.flush() |
| 166 | |
| 167 | |
| 168 | def pytest_runtest_setup(item: Item) -> None: |
no test coverage detected