Skip to content
Snippets Groups Projects
Commit 56a857a63c3a authored by Arnaud Vergnet's avatar Arnaud Vergnet :sun_with_face:
Browse files

test: add current user anon test

parent 78f87ef194af
No related branches found
No related tags found
1 merge request!62tests: improve coverage
......@@ -26,3 +26,12 @@
assert response["login"] == self.admlogin
assert response["dcTitle"] == self.admlogin
assert isinstance(response["eid"], int)
def test_current_user_anonymous(self):
response = self.webapp.get(
self.get_api_path("current-user"), headers=self.custom_headers, status=200
).json
assert response["login"] == "anon"
assert response["dcTitle"] == "anon"
assert isinstance(response["eid"], int)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment