Skip to content

Commit

Permalink
Merge pull request #255 from CybercentreCanada/feature/safelist_signa…
Browse files Browse the repository at this point in the history
…tures

Fix tests
  • Loading branch information
cccs-sgaron authored Aug 31, 2021
2 parents de66431 + 5da97a9 commit 19289be
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/test_safelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ def test_safelist_add_file(datastore, login_session):
assert added == updated
assert added is not None and updated is not None

# Make sure tag is none
tag = ds_sl.pop('tag', {})
# Make sure tag and signature are none
tag = ds_sl.pop('tag', None)
signature = ds_sl.pop('signature', None)
assert tag is None
assert signature is None

# Test classification
classification = ds_sl.pop('classification', None)
Expand Down Expand Up @@ -142,9 +144,11 @@ def test_safelist_add_tag(datastore, login_session):
assert added == updated
assert added is not None and updated is not None

# Make sure file is none
# Make sure file and signature are None
file = ds_sl.pop('file', {})
signature = ds_sl.pop('signature', None)
assert file is None
assert signature is None

# Test classification
classification = ds_sl.pop('classification', None)
Expand Down

0 comments on commit 19289be

Please sign in to comment.