]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tests: Add 'store_samples' decorator to 'test_event'
authorStephen Finucane <stephen@that.guru>
Mon, 29 Oct 2018 00:54:57 +0000 (00:54 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 22 Dec 2018 17:00:34 +0000 (17:00 +0000)
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/api/test_event.py

index 0a36dbd36782831fb9a3d16ab3f8ed92c0aba189..fd32bc8c58954b86a228b7e472076d7237eab09a 100644 (file)
@@ -9,6 +9,7 @@ from django.conf import settings
 from django.urls import reverse
 
 from patchwork.models import Event
+from patchwork.tests.api import utils
 from patchwork.tests.utils import create_check
 from patchwork.tests.utils import create_cover
 from patchwork.tests.utils import create_maintainer
@@ -78,6 +79,7 @@ class TestEventAPI(APITestCase):
 
         return Event.objects.all()
 
+    @utils.store_samples('event-list')
     def test_list(self):
         """List events."""
         events = self._create_events()