Преглед изворни кода

IS-1139 [core] Fixed ERROR: desktop.auth.views_test.TestMultipleBackendLoginNoHadoop.test_login (#1144)

Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
Sungpeo Kook пре 5 година
родитељ
комит
db4b01d884
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      desktop/core/src/desktop/auth/views_test.py

+ 2 - 0
desktop/core/src/desktop/auth/views_test.py

@@ -602,6 +602,8 @@ class TestMultipleBackendLoginNoHadoop(object):
       finish()
 
   def test_login(self):
+    ldap_access.CACHED_LDAP_CONN = LdapTestConnection()
+
     response = self.c.get('/hue/accounts/login/')
     assert_equal(200, response.status_code, "Expected ok status.")
     assert_true(response.context[0]['first_login_ever'])