소스 검색

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'])