File: test_packaging.py

package info (click to toggle)
python-daphne 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 392 kB
  • sloc: python: 2,593; makefile: 28
file content (9 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import sysconfig
from pathlib import Path


def test_fd_endpoint_plugin_installed():
    # Find the site-packages directory
    site_packages = Path(sysconfig.get_path("purelib", "deb_system"))
    plugin_path = site_packages / "twisted" / "plugins" / "fd_endpoint.py"
    assert plugin_path.exists(), f"fd_endpoint.py not found at {plugin_path}"