Explorar o código

HUE-4053 [oozie] Fix oozie share workflow test to work with old and new editor mode

Jenny Kim %!s(int64=9) %!d(string=hai) anos
pai
achega
82d71b0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      apps/oozie/src/oozie/tests2.py

+ 2 - 1
apps/oozie/src/oozie/tests2.py

@@ -432,7 +432,8 @@ LIMIT $limit"""))
 
       # other user can access document
       response = self.client_not_me.get(reverse('oozie:edit_workflow'), {'workflow': wf_doc.uuid})
-      assert_equal(response.status_code, 200)
+      assert_false('Document does not exist or you don't have the permission to access it.' in response.content,
+                   response.content)
     finally:
       wf_doc.delete()