Restore character facts in H3 ref context
This commit is contained in:
@@ -288,7 +288,24 @@ class DumasH3LongVideosHelperTests(unittest.TestCase):
|
||||
|
||||
def test_reference_context_matches_character_names_and_location_tags(self):
|
||||
refs = [
|
||||
{"kind": "character", "image": "img1", "name": "Mara", "description": "silver hair", "wardrobe": "red jacket"},
|
||||
{
|
||||
"kind": "character",
|
||||
"image": "img1",
|
||||
"name": "Mara",
|
||||
"aliases": ["Xtina"],
|
||||
"description": "silver hair",
|
||||
"wardrobe": "red jacket",
|
||||
"general": "wears a long grey coat",
|
||||
"facts": {
|
||||
"gender": "female",
|
||||
"age": "41",
|
||||
"nationality": "English",
|
||||
"occupation": "a detective",
|
||||
"height_feet": "6",
|
||||
"height_inches": "2",
|
||||
"accent": "English",
|
||||
},
|
||||
},
|
||||
{"kind": "location", "image": "img2", "name": "Hangar", "description": "wet concrete floor"},
|
||||
]
|
||||
|
||||
@@ -297,8 +314,17 @@ class DumasH3LongVideosHelperTests(unittest.TestCase):
|
||||
refs,
|
||||
)
|
||||
|
||||
self.assertIn("Character facts for Mara:", context)
|
||||
self.assertIn("also known as Xtina", context)
|
||||
self.assertIn("female", context)
|
||||
self.assertIn("41 years old", context)
|
||||
self.assertIn("English", context)
|
||||
self.assertIn("works as a detective", context)
|
||||
self.assertIn("6 foot 2 tall", context)
|
||||
self.assertIn("speaks with a English accent", context)
|
||||
self.assertIn("Persistent appearance for Mara: silver hair.", context)
|
||||
self.assertIn("Persistent wardrobe/style for Mara: red jacket.", context)
|
||||
self.assertIn("Character notes for Mara: wears a long grey coat.", context)
|
||||
self.assertIn("Location context for Hangar: wet concrete floor.", context)
|
||||
|
||||
def test_reference_context_matches_tagged_character_without_name_in_text(self):
|
||||
|
||||
Reference in New Issue
Block a user