fix(audit): moderniser les accès ORM
CI - Security, Lint & Tests / validate (push) Failing after 19m37s
CI - Security, Lint & Tests / validate (push) Failing after 19m37s
This commit is contained in:
@@ -135,9 +135,11 @@ class TestThroughTheUploadRoute:
|
||||
contract_id = Contract.query.one().id
|
||||
|
||||
response = client.get(f'/users/contracts/{contract_id}/download')
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.data.startswith(b'%PDF-')
|
||||
try:
|
||||
assert response.status_code == 200
|
||||
assert response.data.startswith(b'%PDF-')
|
||||
finally:
|
||||
response.close()
|
||||
|
||||
|
||||
def _pdf():
|
||||
|
||||
Reference in New Issue
Block a user