Mitja Nikolaus | 03e412b | 2018-09-18 17:50:15 +0200 | [diff] [blame^] | 1 | """Tests for the crashreports REST API.""" |
| 2 | |
| 3 | from crashreports.tests.utils import Dummy |
| 4 | from crashreports.tests.test_rest_api_heartbeats import HeartbeatsTestCase |
| 5 | |
| 6 | |
| 7 | class 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) |