Skip to content

Commit e68a174

Browse files
committed
Added test for twisted plugin installation.
Refs #557.
1 parent 1502de0 commit e68a174

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_packaging.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import sys
2+
from pathlib import Path
3+
4+
5+
def test_fd_endpoint_plugin_installed():
6+
# Find the site-packages directory
7+
for path in sys.path:
8+
if 'site-packages' in path:
9+
site_packages = Path(path)
10+
break
11+
else:
12+
raise AssertionError("Could not find site-packages in sys.path")
13+
14+
plugin_path = site_packages / 'twisted' / 'plugins' / 'fd_endpoint.py'
15+
assert plugin_path.exists(), f"fd_endpoint.py not found at {plugin_path}"

0 commit comments

Comments
 (0)