MCPcopy
hub / github.com/pallets/click / _restore_available_shells

Function _restore_available_shells

tests/test_shell_completion.py:489–494  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

487
488@pytest.fixture()
489def _restore_available_shells(tmpdir):
490 prev_available_shells = click.shell_completion._available_shells.copy()
491 click.shell_completion._available_shells.clear()
492 yield
493 click.shell_completion._available_shells.clear()
494 click.shell_completion._available_shells.update(prev_available_shells)
495
496
497@pytest.mark.usefixtures("_restore_available_shells")

Callers

nothing calls this directly

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected