Commit 231490a5 authored by Alvin Noe Ladines's avatar Alvin Noe Ladines
Browse files

Minor assertions in mirror files users api tests

parent ebbd67f8
Pipeline #71068 passed with stages
in 21 minutes and 1 second
......@@ -24,6 +24,7 @@ import os.path
from urllib.parse import urlencode
import base64
import itertools
from hashlib import md5
from nomad.app.common import rfc3339DateTime
from nomad.app.api.auth import generate_upload_token
......@@ -1707,12 +1708,17 @@ class TestMirror:
rv = api.get(url, headers=admin_user_auth)
assert rv.status_code == 200
assert rv.data is not None
assert md5(rv.data).hexdigest() == '76cdb2bad9582d23c1f6f4d868218d6c'
def test_users(self, api, published, admin_user_auth, no_warn):
url = '/mirror/users'
rv = api.get(url, headers=admin_user_auth)
assert rv.status_code == 200
assert rv.data is not None
users = json.loads(rv.data)
assert users is not None
assert len(users) == 3
for user in users:
assert 'email' not in user
class TestDataset:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment