From: Stephen Finucane Date: Mon, 29 Oct 2018 00:54:57 +0000 (+0000) Subject: tests: Add 'store_samples' decorator to 'test_event' X-Git-Tag: v2.2.0-rc1~203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b9869d814e35c89fdbe904a55d9d0dd512ac333;p=thirdparty%2Fpatchwork.git tests: Add 'store_samples' decorator to 'test_event' Signed-off-by: Stephen Finucane --- 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()