feat(governance): automate identity and comparison coverage

This commit is contained in:
ogt
2026-07-14 16:15:41 +08:00
parent 2dcc2122c4
commit 4bfb9dbefd
31 changed files with 2763 additions and 578 deletions

View File

@@ -384,6 +384,9 @@ def test_sales_analysis_preview_context_cache_avoids_reloading_options(tmp_path,
for _ in range(2):
with app.test_request_context("/sales_analysis"):
session["logged_in"] = True
session["role"] = "admin"
session["username"] = "legacy-admin"
session["auth_source"] = "legacy_shared_password"
response = sales_routes.sales_analysis()
assert response["no_filter"] is True
assert response["all_categories"] == ["美妝"]