blob: 7165f9b8d2c3e7ebe1e98101e3af2d25df6bff2c [file] [log] [blame]
Mitja Nikolaus03e412b2018-09-18 17:50:15 +02001"""Tests for the crashreports REST API."""
2
3from crashreports.tests.utils import Dummy
4from crashreports.tests.test_rest_api_heartbeats import HeartbeatsTestCase
5
6
7class CrashreportsTestCase(HeartbeatsTestCase):
8 """Test cases for crash reports."""
9
10 # pylint: disable=too-many-ancestors
11
12 LIST_CREATE_URL = "api_v1_crashreports"
13 RETRIEVE_URL = "api_v1_crashreport"
14 LIST_CREATE_BY_UUID_URL = "api_v1_crashreports_by_uuid"
15 RETRIEVE_BY_UUID_URL = "api_v1_crashreport_by_uuid"
16
17 @staticmethod
18 def _create_dummy_data(**kwargs):
19 return Dummy.crashreport_data(**kwargs)