Remove long video plan integration
This commit is contained in:
@@ -230,53 +230,6 @@ class DumasH3LongVideosHelperTests(unittest.TestCase):
|
||||
|
||||
for index in range(1, 10):
|
||||
self.assertIn(f"ref_{index}", optional)
|
||||
self.assertIn("plan", optional)
|
||||
self.assertIn("plan_scene_index", optional)
|
||||
|
||||
def test_plan_scene_refs_reads_bound_images(self):
|
||||
attach = self.image_module.DumasH3PlanAttachSceneImagesNode()
|
||||
plan = {"shots": [{"id": "one"}, {"id": "two"}]}
|
||||
image2 = object()
|
||||
image7 = object()
|
||||
|
||||
plan, _ = attach.attach(plan=plan, scene_index=2, image2=image2, image7=image7)
|
||||
refs = self.module._plan_scene_refs(plan, 2)
|
||||
|
||||
self.assertEqual(len(refs), 9)
|
||||
self.assertIsNone(refs[0])
|
||||
self.assertIs(self.module._reference_image(refs[1]), image2)
|
||||
self.assertIs(self.module._reference_image(refs[6]), image7)
|
||||
|
||||
def test_merge_ref_slots_prefers_direct_refs_over_plan_refs(self):
|
||||
merged = self.module._merge_ref_slots(
|
||||
(
|
||||
None,
|
||||
{"kind": "character", "image": "direct2"},
|
||||
None,
|
||||
None,
|
||||
{"kind": "character", "image": "direct5"},
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
),
|
||||
(
|
||||
{"kind": "location", "image": "plan1"},
|
||||
{"kind": "location", "image": "plan2"},
|
||||
{"kind": "location", "image": "plan3"},
|
||||
None,
|
||||
{"kind": "location", "image": "plan5"},
|
||||
None,
|
||||
{"kind": "location", "image": "plan7"},
|
||||
None,
|
||||
None,
|
||||
),
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
[self.module._reference_image(ref) if ref is not None else None for ref in merged],
|
||||
["plan1", "direct2", "plan3", None, "direct5", None, "plan7", None, None],
|
||||
)
|
||||
|
||||
def test_reference_context_matches_character_names_and_location_tags(self):
|
||||
refs = [
|
||||
|
||||
Reference in New Issue
Block a user