fix: clean up test fixtures and remove stale .bak test files

- Reset gitea settings after bug tests to prevent cross-test contamination
- Add deleted_at and deleted_by fields to ingress proxy test instance creation
- Call refresh_snapshot after ingress proxy test setup and teardown
- Remove orphaned .bak test files (test_attachments.py.bak, test_demo.py.bak) that were left behind from a previous refactor
This commit is contained in:
2026-06-13 15:14:52 +00:00
parent 43f4011005
commit 271c84fc06
4 changed files with 6 additions and 318 deletions
+2
View File
@@ -144,6 +144,8 @@ def gitea_env():
set_setting("bug_ai_enhance", "0")
yield fake
runtime.set_client(None)
for key in ("gitea_base_url", "gitea_owner", "gitea_repo", "gitea_token"):
set_setting(key, "")
for table in ("bug_tickets", "bug_comment_authors"):
for row in list(get_table(table).find()):
get_table(table).delete(uid=row["uid"])