mirror of
https://github.com/django/daphne.git
synced 2025-07-26 06:59:46 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
e68a174167
commit
03e0c8f20c
|
@ -5,11 +5,11 @@ from pathlib import Path
|
||||||
def test_fd_endpoint_plugin_installed():
|
def test_fd_endpoint_plugin_installed():
|
||||||
# Find the site-packages directory
|
# Find the site-packages directory
|
||||||
for path in sys.path:
|
for path in sys.path:
|
||||||
if 'site-packages' in path:
|
if "site-packages" in path:
|
||||||
site_packages = Path(path)
|
site_packages = Path(path)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise AssertionError("Could not find site-packages in sys.path")
|
raise AssertionError("Could not find site-packages in sys.path")
|
||||||
|
|
||||||
plugin_path = site_packages / 'twisted' / 'plugins' / 'fd_endpoint.py'
|
plugin_path = site_packages / "twisted" / "plugins" / "fd_endpoint.py"
|
||||||
assert plugin_path.exists(), f"fd_endpoint.py not found at {plugin_path}"
|
assert plugin_path.exists(), f"fd_endpoint.py not found at {plugin_path}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user