[12/13] tests: Add 'store_samples' decorator to 'test_event'

Message ID 20181030113153.7855-13-stephen@that.guru
State New
Headers show
Series
  • Start generating API examples from tests
Related show

Commit Message

Stephen Finucane Oct. 30, 2018, 11:31 a.m.
Signed-off-by: Stephen Finucane <stephen@that.guru>
---
 patchwork/tests/api/test_event.py | 2 ++
 1 file changed, 2 insertions(+)

Patch

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()