[PATCH 12/13] tests: Add 'store_samples' decorator to 'test_event'
Stephen Finucane
stephen at that.guru
Tue Oct 30 22:31:52 AEDT 2018
Signed-off-by: Stephen Finucane <stephen at that.guru>
---
patchwork/tests/api/test_event.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/patchwork/tests/api/test_event.py b/patchwork/tests/api/test_event.py
index 0a36dbd3..fd32bc8c 100644
--- a/patchwork/tests/api/test_event.py
+++ b/patchwork/tests/api/test_event.py
@@ -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()
--
2.17.2
More information about the Patchwork
mailing list