Skip to content

Commit e8b1ba7

Browse files
committed
failing test
1 parent 1a46828 commit e8b1ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/mergin/tests/test_public_api_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ def test_get_project(client):
174174
admin = User.query.filter_by(username=DEFAULT_USER[0]).first()
175175
test_workspace = create_workspace()
176176
project = create_project("new_project", test_workspace, admin)
177-
user = add_user("tests", "tests")
178177
logout(client)
179178
# anonymous user cannot access the resource
180179
response = client.get(f"v2/projects/{project.id}")
181180
assert response.status_code == 404
182181
# lack of permissions
182+
user = add_user("tests", "tests")
183183
login(client, user.username, "tests")
184184
response = client.get(f"v2/projects/{project.id}")
185185
assert response.status_code == 403

0 commit comments

Comments
 (0)