28 lines
861 B
Python
28 lines
861 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_isa_rpa_removed_from_project():
|
|
pyproject = (ROOT / "pyproject.toml").read_text(encoding="utf-8")
|
|
assert "isa-rpa" not in pyproject
|
|
assert "isa_rpa" not in pyproject
|
|
main_src = (ROOT / "main.py").read_text(encoding="utf-8")
|
|
assert "isa_rpa" not in main_src
|
|
assert "SecretClient" not in main_src
|
|
assert "BrowserSession" not in main_src
|
|
|
|
|
|
def test_purchase_price_band_removed():
|
|
forbidden = (
|
|
"is_in_purchase_price_band",
|
|
"filter_rows_by_purchase_price_band",
|
|
"价格区间过滤后总行数",
|
|
)
|
|
for path in ROOT.glob("*.py"):
|
|
text = path.read_text(encoding="utf-8")
|
|
for token in forbidden:
|
|
assert token not in text, f"{path.name} still contains {token}"
|