diff --git a/tests/shellcompletion/__init__.py b/tests/shellcompletion/__init__.py index b1731d35..2d0eda29 100644 --- a/tests/shellcompletion/__init__.py +++ b/tests/shellcompletion/__init__.py @@ -362,6 +362,18 @@ def test_pythonpath_pass_through(self): ) self.assertIn("working", completions) + def test_reentrant_install_uninstall(self): + self.install() + self.install() + self.verify_install() + + completions = self.get_completions(self.launch_script, "complet") + self.assertIn("completion", completions) + + self.remove() + self.remove() + self.verify_remove() + class _ScriptCompleteTestCase(_CompleteTestCase): manage_script: str = "manage.py" diff --git a/tests/shellcompletion/test_fish.py b/tests/shellcompletion/test_fish.py index 8ea2829d..3e0c2c28 100644 --- a/tests/shellcompletion/test_fish.py +++ b/tests/shellcompletion/test_fish.py @@ -59,6 +59,9 @@ def test_pythonpath_pass_through(self): ... @pytest.mark.skip(reason="fish does not support script installations") def test_fallback(self): ... + @pytest.mark.skip(reason="fish does not support script installations") + def test_reentrant_install_uninstall(self): ... + @pytest.mark.skipif(shutil.which("fish") is None, reason="Fish not available") class FishExeShellTests(_FishMixin, _InstalledScriptCompleteTestCase, TestCase): diff --git a/tests/shellcompletion/test_powershell.py b/tests/shellcompletion/test_powershell.py index 5dda75aa..3822670b 100644 --- a/tests/shellcompletion/test_powershell.py +++ b/tests/shellcompletion/test_powershell.py @@ -81,6 +81,9 @@ def test_pythonpath_pass_through(self): ... @pytest.mark.skip(reason="powershell does not support script installations") def test_fallback(self): ... + @pytest.mark.skip(reason="powershell does not support script installations") + def test_reentrant_install_uninstall(self): ... + @pytest.mark.skipif( shutil.which("powershell") is None, reason="Powershell not available"