feat: Import-Rollback fuer bestaetigte Auszuege (v0.3.0)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 16:40:56 +02:00
parent d71c22adce
commit e7855a7bda
6 changed files with 94 additions and 4 deletions

View File

@@ -39,10 +39,12 @@ def test_import_list_fragment_renders_after_login(client):
def test_version_visible(client):
from pathlib import Path
version = (Path(__file__).resolve().parent.parent / "VERSION").read_text().strip()
r = client.get("/api/version", headers={"Authorization": "Bearer test-key"})
assert r.status_code == 200 and r.json()["version"] == "0.2.0"
assert r.status_code == 200 and r.json()["version"] == version
client.post("/login", data={"username": "admin", "password": "geheim"})
assert "v0.2.0" in client.get("/").text
assert f"v{version}" in client.get("/").text
def test_buchungen_pagination(client, db):