if settings.ENABLE_REST_API:
from rest_framework import status
+ from rest_framework.test import APITestCase
+else:
+ # stub out APITestCase
+ from django.test import TestCase as APITestCase
+# FIXME(stephenfin: This should inherit from 'utils.APITestCase', but we need
+# to fix our schema to work with recent versions of openapi_core
@unittest.skipUnless(settings.ENABLE_REST_API, 'requires ENABLE_REST_API')
-class TestEventAPI(utils.APITestCase):
+class TestEventAPI(APITestCase):
@staticmethod
def api_url(version=None):