This commit is contained in:
@@ -55,6 +55,7 @@ def test_user_guide_documentation_contract() -> None:
|
||||
documentation = (ROOT / "stelloauth/DOCS.md").read_text(encoding="utf-8")
|
||||
for required_text in (
|
||||
REPOSITORY_URL,
|
||||
"Indstillinger → Apps → Installér app → ⋮ →",
|
||||
"Installér **Stelloauth**",
|
||||
"aktivér **Start ved opstart** og **Watchdog**",
|
||||
"http://0031621f-stelloauth:8080/worker",
|
||||
@@ -67,16 +68,20 @@ def test_user_guide_documentation_contract() -> None:
|
||||
"approximately 4 GB free",
|
||||
"Der er ikke gennemført et live MyOpel-login.",
|
||||
"Login-flow RAM: not measured without real MyOpel credentials.",
|
||||
"Fjernelse sker i **Indstillinger → Apps → Stelloauth → Afinstallér**.",
|
||||
):
|
||||
assert required_text in documentation
|
||||
assert "deaktivér porttilknytningen igen" in documentation
|
||||
assert "Seneste idle RAM" not in documentation
|
||||
assert "Tilføjelser" not in documentation
|
||||
assert "Tilføjelsesbutik" not in documentation
|
||||
|
||||
|
||||
def test_root_readme_repository_source_and_license_facts() -> None:
|
||||
readme = (ROOT / "README.md").read_text(encoding="utf-8")
|
||||
for required_text in (
|
||||
REPOSITORY_URL,
|
||||
"Indstillinger → Apps → Installér app → ⋮ → Repositorier",
|
||||
"v0.6.0",
|
||||
"367d4f8c02a3b072c59142c49dffc129edc8548b",
|
||||
"0.5.10",
|
||||
@@ -85,6 +90,7 @@ def test_root_readme_repository_source_and_license_facts() -> None:
|
||||
"MIT-licenseret",
|
||||
):
|
||||
assert required_text in readme
|
||||
assert "Tilføjelsesbutik" not in readme
|
||||
|
||||
def test_translations_cover_every_option() -> None:
|
||||
keys = set(load_yaml("stelloauth/config.yaml")["options"])
|
||||
|
||||
Reference in New Issue
Block a user