Static serving routes through a pure resolve(), so the extension allowlist and the traversal guard are tested without aiohttp. modules/ serves .js only: a module cannot ship a stylesheet even if one is written.
8 lines
227 B
Python
8 lines
227 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
# Tests import `core.*`; make the repo root importable however pytest was invoked.
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
if str(ROOT) not in sys.path:
|
|
sys.path.insert(0, str(ROOT))
|