def test_is_path_not_complete(self): schema = load_schema_from_name("test_textfield") router = Router( schema, self.answer_store, self.list_store, self.progress_store, self.metadata, ) routing_path = router.routing_path(section_id="default-section") is_path_complete = router.is_path_complete(routing_path) self.assertFalse(is_path_complete)
def test_is_path_complete(self): schema = load_schema_from_name("test_textfield") progress_store = ProgressStore([{ "section_id": "default-section", "list_item_id": None, "status": CompletionStatus.IN_PROGRESS, "block_ids": ["name-block"], }]) router = Router(schema, self.answer_store, self.list_store, progress_store, self.metadata) routing_path = router.routing_path(section_id="default-section") is_path_complete = router.is_path_complete(routing_path) self.assertTrue(is_path_complete)