test_solis: compare binary data to binary string (#38781)

This commit is contained in:
Emmanuel Cazenave 2020-01-22 17:45:53 +01:00
parent 51c0a5e066
commit 32a85de68f
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ def test_solis_apa_integration(app, solis):
sent_files = requests_post.call_args_list[0][1]['files']
assert len(sent_files) == 3
for file_ in sent_files:
assert file_[1][1].startswith('%PDF')
assert file_[1][1].startswith(b'%PDF')
# file entries are removed from demandeApa JSON dict
assert 'file:etat_civil_001.pdf' not in requests_post.call_args[1]['json']['demandeApa']
assert 'file:etat_civil_002.pdf' not in requests_post.call_args[1]['json']['demandeApa']