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

Method test_fetch_progress

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

Source from the content-addressed store, hash-verified

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)
25 response = self.assert_fetch(self.project.admin, status.HTTP_200_OK)
26 expected_progress = [{"user": member.username, "done": 0} for member in self.project.members]
27 expected_progress[0]["done"] = 1
28 self.assertEqual(response.data, {"total": 1, "progress": expected_progress})
29
30
31class TestProgressHelper(CRUDMixin):

Callers

nothing calls this directly

Calls 2

assert_fetchMethod · 0.80
makeMethod · 0.45

Tested by

no test coverage detected