From e68a174167c742fc354f266e0c56922161b91d5c Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Tue, 17 Jun 2025 08:11:09 +0200 Subject: [PATCH] Added test for twisted plugin installation. Refs #557. --- tests/test_packaging.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/test_packaging.py diff --git a/tests/test_packaging.py b/tests/test_packaging.py new file mode 100644 index 0000000..9b53854 --- /dev/null +++ b/tests/test_packaging.py @@ -0,0 +1,15 @@ +import sys +from pathlib import Path + + +def test_fd_endpoint_plugin_installed(): + # Find the site-packages directory + for path in sys.path: + if 'site-packages' in path: + site_packages = Path(path) + break + else: + raise AssertionError("Could not find site-packages in sys.path") + + plugin_path = site_packages / 'twisted' / 'plugins' / 'fd_endpoint.py' + assert plugin_path.exists(), f"fd_endpoint.py not found at {plugin_path}"