Parcourir la source

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

Jenny Kim il y a 9 ans
Parent
commit
82d71b0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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()