MCPcopy Create free account
hub / github.com/doccano/doccano / test_fetch_initial_progress

Method test_fetch_initial_progress

backend/metrics/tests.py:18–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.url = reverse(viewname="member_progress", args=[self.project.item.id])
17
18 def test_fetch_initial_progress(self):
19 response = self.assert_fetch(self.project.admin, status.HTTP_200_OK)
20 expected_progress = [{"user": member.username, "done": 0} for member in self.project.members]
21 self.assertEqual(response.data, {"total": 1, "progress": expected_progress})
22
23 def test_fetch_progress(self):
24 mommy.make("ExampleState", example=self.example, confirmed_by=self.project.admin)

Callers

nothing calls this directly

Calls 1

assert_fetchMethod · 0.80

Tested by

no test coverage detected