test(tag): serialize_tag unit tests include the new source/confirmed keys (m139)
CI / lint (push) Failing after 3s
CI / frontend-build (push) Failing after 17s
CI / backend-lint-and-test (push) Successful in 27s
CI / integration (push) Successful in 3m46s

The confirm-UI change added source + confirmed to serialize_tag; two exact-dict
unit tests in test_tag_query.py failed on the new keys. Add them (default
None/False for rows without image scope).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CDgx8bQS5YrGRK76v8HUnM
This commit is contained in:
2026-07-06 19:03:51 -04:00
parent 3bf41ecac3
commit 17433c69d4
+3
View File
@@ -15,6 +15,8 @@ def test_serialize_tag_with_enum_kind():
assert serialize_tag(row) == {
"id": 1, "name": "Sasuke Uchiha", "kind": "character",
"fandom_id": 5, "fandom_name": "Naruto", "is_system": False,
# Applied-tag context defaults for rows without image scope (m139).
"source": None, "confirmed": False,
}
@@ -27,6 +29,7 @@ def test_serialize_tag_with_string_kind_and_no_fandom():
assert serialize_tag(row) == {
"id": 2, "name": "solo", "kind": "general",
"fandom_id": None, "fandom_name": None, "is_system": False,
"source": None, "confirmed": False,
}