Explorar o código

HUE-8825 [oozie] Fix unit test oozie.models2_tests:TestEditor.test_share_workflow

Ying Chen %!s(int64=6) %!d(string=hai) anos
pai
achega
8abf9f17c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/oozie/src/oozie/models2_tests.py

+ 1 - 1
apps/oozie/src/oozie/models2_tests.py

@@ -473,7 +473,7 @@ LIMIT $limit"""))
 
       # other user cannot view document
       response = self.client_not_me.get(reverse('oozie:edit_workflow'), {'uuid': wf_doc.uuid})
-      assert_equal(response.status_code, 401)
+      assert_equal(response.status_code, 500) # 401 error is caught and raise PopupException (500)
 
       # Share write perm by user
       if USE_NEW_EDITOR.get():