mirror of https://github.com/MISP/MISP
fix: [tests] just messin' around.
parent
65354d2ec3
commit
0f860732af
|
@ -255,9 +255,9 @@ jobs:
|
||||||
python -m pytest -v --durations=0 tests/test_mispevent.py
|
python -m pytest -v --durations=0 tests/test_mispevent.py
|
||||||
python -m pytest -v --durations=0 tests/testlive_comprehensive.py
|
python -m pytest -v --durations=0 tests/testlive_comprehensive.py
|
||||||
popd
|
popd
|
||||||
python tests/testlive_security.py -v
|
|
||||||
python tests/testlive_sync.py
|
|
||||||
python tests/testlive_comprehensive_local.py -v
|
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/
|
cp PyMISP/tests/keys.py PyMISP/examples/events/
|
||||||
pushd PyMISP/examples/events/
|
pushd PyMISP/examples/events/
|
||||||
python ./create_massive_dummy_events.py -l 5 -a 30
|
python ./create_massive_dummy_events.py -l 5 -a 30
|
||||||
|
|
|
@ -116,10 +116,10 @@ def send(api: PyMISP, request_type: str, url: str, data=None, check_errors: bool
|
||||||
if data is None:
|
if data is None:
|
||||||
data = {}
|
data = {}
|
||||||
response = api._prepare_request(request_type, url, data=data)
|
response = api._prepare_request(request_type, url, data=data)
|
||||||
r = response.json()
|
response = api._check_response(response)
|
||||||
if check_errors:
|
if check_errors:
|
||||||
check_response(r)
|
check_response(response)
|
||||||
return r
|
return response
|
||||||
|
|
||||||
|
|
||||||
def random() -> str:
|
def random() -> str:
|
||||||
|
|
Loading…
Reference in New Issue