(tmpdir)
| 487 | |
| 488 | @pytest.fixture() |
| 489 | def _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") |