Verified Commit c17bcaf7 authored by Huste, Tobias (FWCC) - 111645's avatar Huste, Tobias (FWCC) - 111645
Browse files

tests: test if user is not authenticated in browse

parent 6ccfdcaa
Pipeline #2508 passed with stage
in 18 minutes and 56 seconds
......@@ -224,10 +224,13 @@ def test_sftp_post_fail(client, bucket, remote, user, user2):
def test_sftp_browse(client, remote, user):
"""Test get API call."""
login_user(client, user)
url = url_for('invenio_uploadbyurl.uploadbyurl_api_sftp_browse',
resp =
assert resp.status_code == 401
login_user(client, user)
resp =
assert resp.status_code == 200
node = dict(
Markdown is supported
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