Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RODARE
invenio-uploadbyurl
Commits
c17bcaf7
Verified
Commit
c17bcaf7
authored
Jan 31, 2018
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/test_views.py
View file @
c17bcaf7
...
...
@@ -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'
,
remote_server
=
remote
.
name
)
resp
=
client
.
post
(
url
)
assert
resp
.
status_code
==
401
login_user
(
client
,
user
)
resp
=
client
.
post
(
url
)
assert
resp
.
status_code
==
200
node
=
dict
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment