Clarify and live-refresh media indexing state
This commit is contained in:
@@ -475,8 +475,14 @@ class RequestPresentationTests(unittest.TestCase):
|
||||
"The requested content has been collected and is available to watch. No further action is needed.",
|
||||
)
|
||||
search_stage = next(stage for stage in presentation["pipeline"] if stage["id"] == "search")
|
||||
available_stage = next(stage for stage in presentation["pipeline"] if stage["id"] == "available")
|
||||
self.assertEqual(search_stage["state"], "complete")
|
||||
self.assertEqual(search_stage["actionIds"], [])
|
||||
self.assertEqual(available_stage["state"], "complete")
|
||||
self.assertEqual(available_stage["stateLabel"], "Ready")
|
||||
self.assertEqual(available_stage["label"], "Available to watch")
|
||||
self.assertEqual(available_stage["summary"], "This title is ready to watch in Grizzlyflix.")
|
||||
self.assertEqual(available_stage["link"], "https://media.test/title/3909")
|
||||
|
||||
def test_partially_available_content_keeps_missing_download_attention(self) -> None:
|
||||
snapshot = Snapshot(
|
||||
@@ -546,6 +552,12 @@ class RequestPresentationTests(unittest.TestCase):
|
||||
self.assertEqual(search_stage["state"], "complete")
|
||||
self.assertEqual(download_stage["state"], "complete")
|
||||
self.assertEqual(available_stage["state"], "active")
|
||||
self.assertEqual(available_stage["stateLabel"], "Indexing")
|
||||
self.assertEqual(available_stage["label"], "Adding to Grizzlyflix")
|
||||
self.assertEqual(
|
||||
available_stage["summary"],
|
||||
"The download is complete. Grizzlyflix is indexing this title now.",
|
||||
)
|
||||
|
||||
|
||||
class RequestCreationFlowTests(unittest.IsolatedAsyncioTestCase):
|
||||
|
||||
Reference in New Issue
Block a user