Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Jul 5, 2024
1 parent 10ac697 commit 1c077cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def test_submit_dynamic(datastore, client):
assert res['sid'] is not None
assert res == datastore.submission.get(res['sid'], as_obj=False)
assert 'Dynamic Analysis' in res['params']['services']['selected']
for k in res['params']:
for k, v in submission_data['params'].items():
if k not in ['submitter', 'services', 'description', 'quota_item']:
assert res['params'][k] == submission_data['params'][k]
assert res['params'].get(k) == v


def test_resubmit(datastore, client):
Expand All @@ -117,6 +117,6 @@ def test_resubmit(datastore, client):
assert res is not None
assert res['sid'] is not None
assert res == datastore.submission.get(res['sid'], as_obj=False)
for k in res['params']:
for k, v in submission_data['params'].items():
if k not in ['submitter', 'description', 'quota_item']:
assert res['params'][k] == submission_data['params'][k]
assert res['params'].get(k) == v

0 comments on commit 1c077cd

Please sign in to comment.