Fixture returning the current ``addnodes.SIG_ELEMENTS`` set.
()
| 14 | |
| 15 | @pytest.fixture |
| 16 | def sig_elements() -> Iterator[set[type[addnodes.desc_sig_element]]]: |
| 17 | """Fixture returning the current ``addnodes.SIG_ELEMENTS`` set.""" |
| 18 | original = addnodes.SIG_ELEMENTS.copy() # safe copy of the current nodes |
| 19 | yield {*addnodes.SIG_ELEMENTS} # temporary value to use during tests |
| 20 | addnodes.SIG_ELEMENTS = original # restore the previous value |
| 21 | |
| 22 | |
| 23 | def test_desc_sig_element_nodes( |
nothing calls this directly
no test coverage detected
searching dependent graphs…