diff --git a/openedx/core/djangoapps/theming/management/commands/tests/test_create_sites_and_configurations.py b/openedx/core/djangoapps/theming/management/commands/tests/test_create_sites_and_configurations.py index 81dbb138c0..52f3e47384 100644 --- a/openedx/core/djangoapps/theming/management/commands/tests/test_create_sites_and_configurations.py +++ b/openedx/core/djangoapps/theming/management/commands/tests/test_create_sites_and_configurations.py @@ -86,7 +86,7 @@ class TestCreateSiteAndConfiguration(TestCase): self.assertTrue(service_user[0].is_staff) self.assertTrue(service_user[0].is_superuser) - user_profile = UserProfile.objects.filter(user=service_user) + user_profile = UserProfile.objects.filter(user=service_user[0]) self.assertEqual(len(user_profile), 1) return service_user @@ -96,7 +96,7 @@ class TestCreateSiteAndConfiguration(TestCase): """ service_user = self._assert_service_user_is_valid("ecommerce_worker") - clients = Application.objects.filter(user=service_user) + clients = Application.objects.filter(user=service_user[0]) self.assertEqual(len(clients), len(SITES)) @@ -132,7 +132,7 @@ class TestCreateSiteAndConfiguration(TestCase): """ service_user = self._assert_service_user_is_valid("lms_catalog_service_user") - clients = Application.objects.filter(user=service_user) + clients = Application.objects.filter(user=service_user[0]) self.assertEqual(len(clients), len(SITES))