From d6bfa03993dc159a82c88c2e8aa1e717aa1f2628 Mon Sep 17 00:00:00 2001 From: Manjinder Singh <49171515+jinder1s@users.noreply.github.com> Date: Thu, 14 Nov 2019 16:29:51 -0500 Subject: [PATCH] Removing flaky tests (#22328) These tests fail intermittently. The related jira ticket to remove flaky test can be found at: https://openedx.atlassian.net/browse/ENT-2479 The tests fail with error log output of: SafeCookieData BWC parse error: 'm3i1v99yuohzsbyjhfp4i9nktjrq4i05' The error seems to be something to do with safe_cookie_string --- .../enterprise_support/tests/test_middleware.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/openedx/features/enterprise_support/tests/test_middleware.py b/openedx/features/enterprise_support/tests/test_middleware.py index 4396ff0865..0264dd128e 100644 --- a/openedx/features/enterprise_support/tests/test_middleware.py +++ b/openedx/features/enterprise_support/tests/test_middleware.py @@ -49,20 +49,3 @@ class EnterpriseMiddlewareTest(TestCase): self.client.logout() self.client.get(self.dashboard) assert self.client.session.get('enterprise_customer') is None - - def test_enterprise_customer(self): - """The `enterprise_customer` gets set in the session.""" - self.client.get(self.dashboard) - assert self.client.session.get('enterprise_customer') == self.enterprise_customer - - def test_enterprise_customer_cached(self): - """The middleware doesn't attempt to refill `enterprise_customer` if it already exists in the session.""" - assert not self.mock_enterprise_customer_from_api.called - - # First call populates the session by calling the API. - self.client.get(self.dashboard) - assert self.mock_enterprise_customer_from_api.call_count == 1 - - # Second same call has no need to call the API because the session already contains the data. - self.client.get(self.dashboard) - assert self.mock_enterprise_customer_from_api.call_count == 1