From c7de1c05ca61441dbd5b9895df82a786b1502330 Mon Sep 17 00:00:00 2001 From: Matt Duncan <14761+mrduncan@users.noreply.github.com> Date: Fri, 4 Aug 2023 11:28:18 -0700 Subject: [PATCH] fix(hc): Use sentry.testutils.cases.TestCase (#54174) This resolves the AssertionError when running in split-db mode which occurs due to `control` not being in CamelCaseModelSerializerTest.databases. --- tests/sentry/api/serializers/rest_framework/test_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sentry/api/serializers/rest_framework/test_base.py b/tests/sentry/api/serializers/rest_framework/test_base.py index cf2a66f475dda..c37a909f71c9e 100644 --- a/tests/sentry/api/serializers/rest_framework/test_base.py +++ b/tests/sentry/api/serializers/rest_framework/test_base.py @@ -1,5 +1,4 @@ from django.contrib.contenttypes.models import ContentType -from django.test import TestCase from rest_framework import serializers from sentry.api.serializers.rest_framework.base import ( @@ -9,6 +8,7 @@ convert_dict_key_case, snake_to_camel_case, ) +from sentry.testutils.cases import TestCase class PersonSerializer(CamelSnakeSerializer):