Commit 47b112c3 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor client and archive api improvements.

parent c7dd3503
Pipeline #72281 passed with stages
in 20 minutes and 51 seconds
This diff is collapsed.
......@@ -320,6 +320,9 @@ class ArchiveQueryResource(Resource):
# optimize and not access restricted for same upload again
pass
if upload_files is not None:
upload_files.close()
# assign archive data to results
results['results'] = data
......
......@@ -37,6 +37,10 @@ def test_query(api, published_wo_user_metadata):
assert_results(query_archive())
def test_query_query(api, published_wo_user_metadata):
assert_results(query_archive(query=dict(upload_id=[published_wo_user_metadata.upload_id])))
def test_query_schema(api, published_wo_user_metadata):
q_schema = {'section_run': {'section_system': '*'}}
assert_results(
......
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