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
nomad-lab
nomad-FAIR
Commits
609a2547
Commit
609a2547
authored
Aug 01, 2019
by
Markus Scheidgen
Browse files
Added a print for API errors on search endpoint.
parent
3c227a2b
Pipeline
#52986
failed with stages
in 17 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_api.py
View file @
609a2547
...
...
@@ -661,7 +661,10 @@ class TestRepo():
search
.
Entry
.
from_calc_with_metadata
(
calc_with_metadata
).
save
(
refresh
=
True
)
def
assert_search
(
self
,
rv
:
Any
,
number_of_calcs
:
int
)
->
dict
:
if
rv
.
status_code
!=
200
:
print
(
rv
.
data
)
assert
rv
.
status_code
==
200
data
=
json
.
loads
(
rv
.
data
)
results
=
data
.
get
(
'results'
,
None
)
...
...
Write
Preview
Supports
Markdown
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