fix: [tests] just messin' around.

pull/9544/head
Raphaël Vinot 2024-02-02 12:27:39 +01:00
parent 65354d2ec3
commit 0f860732af
2 changed files with 15 additions and 15 deletions

View File

@ -255,9 +255,9 @@ jobs:
python -m pytest -v --durations=0 tests/test_mispevent.py
python -m pytest -v --durations=0 tests/testlive_comprehensive.py
popd
python tests/testlive_security.py -v
python tests/testlive_sync.py
python tests/testlive_comprehensive_local.py -v
python tests/testlive_sync.py -v
python tests/testlive_security.py -v
cp PyMISP/tests/keys.py PyMISP/examples/events/
pushd PyMISP/examples/events/
python ./create_massive_dummy_events.py -l 5 -a 30

View File

@ -116,10 +116,10 @@ def send(api: PyMISP, request_type: str, url: str, data=None, check_errors: bool
if data is None:
data = {}
response = api._prepare_request(request_type, url, data=data)
r = response.json()
response = api._check_response(response)
if check_errors:
check_response(r)
return r
check_response(response)
return response
def random() -> str: