tahoe-lafs/integration/vectors.py

19 lines
391 B
Python
Raw Normal View History

2022-12-22 12:13:12 -05:00
"""
A module that loads pre-generated test vectors.
:ivar CHK_PATH: The path of the file containing CHK test vectors.
:ivar chk: The CHK test vectors.
"""
from yaml import safe_load
from pathlib import Path
CHK_PATH: Path = Path(__file__).parent / "test_vectors.yaml"
try:
with CHK_PATH.open() as f:
chk: dict[str, str] = safe_load(f)
except FileNotFoundError:
chk = {}