From c0d4be83636bf5375c4c46d97a8e8c2da234bbdd Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 29 Apr 2023 12:17:32 -0400 Subject: [PATCH] tests/conftest.py: fix test for modifying another users' shares --- sachet/server/files/views.py | 2 +- tests/conftest.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sachet/server/files/views.py b/sachet/server/files/views.py index e17d8e8..33c7f90 100644 --- a/sachet/server/files/views.py +++ b/sachet/server/files/views.py @@ -122,7 +122,7 @@ class FileContentAPI(ModelAPI): jsonify( { "status": "fail", - "message": "Share must be initialized by its owner.", + "message": "Share must be modified by its owner.", } ), 403, diff --git a/tests/conftest.py b/tests/conftest.py index 151c67b..328814a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -75,7 +75,10 @@ def users(client): dave=dict( password="1234", permissions=Bitmask( - Permissions.CREATE, Permissions.READ, Permissions.DELETE + Permissions.CREATE, + Permissions.READ, + Permissions.DELETE, + Permissions.MODIFY, ), ), # admins don't have the other permissions by default,