Add test cases for local ID assignment race conditions
Issue: HIC-251
Change-Id: I9616b786a44bba2621a8a800035ff1189d3d9b19
diff --git a/crashreports/tests/test_rest_api_devices.py b/crashreports/tests/test_rest_api_devices.py
index 512a56a..bc4edea 100644
--- a/crashreports/tests/test_rest_api_devices.py
+++ b/crashreports/tests/test_rest_api_devices.py
@@ -4,12 +4,14 @@
from rest_framework import status
-from crashreports.tests.utils import HiccupCrashreportsAPITestCase, Dummy
+from crashreports.tests.utils import Dummy, HiccupCrashreportsAPITestCase
class DeviceTestCase(HiccupCrashreportsAPITestCase):
"""Test cases for registering devices."""
+ # pylint: disable=too-many-ancestors
+
def test_register(self):
"""Test registration of devices."""
response = self.client.post(
@@ -79,6 +81,8 @@
class ListDevicesTestCase(HiccupCrashreportsAPITestCase):
"""Test cases for listing and deleting devices."""
+ # pylint: disable=too-many-ancestors
+
LIST_CREATE_URL = "api_v1_list_devices"
RETRIEVE_URL = "api_v1_retrieve_device"