annotate tests/test_projects/test_views.py::TestProjectListViewV1::test_pagination with flaky
from unittest.mock import patch
+from flaky import flaky
from rest_framework import status
from django.test import override_settings, tag
@@ -79,6 +80,7 @@ class TestProjectListViewV1(BaseViewTest):
assert len(data) == 1
assert data[0] == self.serializer_class(self.other_object).data
+ @flaky(max_runs=3)
def test_pagination(self):
limit = self.num_objects - 1
resp = self.auth_client.get("{}?limit={}".format(self.url, limit))
