test: update status codes
This commit is contained in:
parent
09459d1d27
commit
fa252691b6
1 changed files with 2 additions and 2 deletions
|
|
@ -542,7 +542,7 @@ class TestDocumentWebView(IntegrationTestCase):
|
|||
self.assertEqual(self.get(url).status, "200 OK")
|
||||
|
||||
with self.change_settings("System Settings", {"allow_older_web_view_links": False}):
|
||||
self.assertEqual(self.get(url).status, "401 UNAUTHORIZED")
|
||||
self.assertEqual(self.get(url).status, "403 FORBIDDEN")
|
||||
|
||||
# with valid key
|
||||
url = f"/ToDo/{todo.name}?key={document_key}"
|
||||
|
|
@ -550,7 +550,7 @@ class TestDocumentWebView(IntegrationTestCase):
|
|||
|
||||
# with invalid key
|
||||
invalid_key_url = f"/ToDo/{todo.name}?key=INVALID_KEY"
|
||||
self.assertEqual(self.get(invalid_key_url).status, "401 UNAUTHORIZED")
|
||||
self.assertEqual(self.get(invalid_key_url).status, "403 FORBIDDEN")
|
||||
|
||||
# expire the key
|
||||
document_key_doc = frappe.get_doc("Document Share Key", {"key": document_key})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue