From c76d1cff797818b76fb5ce17f9e551174222ad82 Mon Sep 17 00:00:00 2001 From: Soban Javed Date: Mon, 30 Mar 2020 20:19:39 +0500 Subject: [PATCH] fixed error in theme management commands in django 2.0 --- .../commands/tests/test_create_sites_and_configurations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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))