mirror of https://github.com/MISP/misp-modules
chg: Add print to figure out what's going on on travis.
parent
79992f0204
commit
40c70c1a53
|
@ -4,6 +4,7 @@
|
||||||
import unittest
|
import unittest
|
||||||
import requests
|
import requests
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
|
import json
|
||||||
|
|
||||||
|
|
||||||
class TestExpansions(unittest.TestCase):
|
class TestExpansions(unittest.TestCase):
|
||||||
|
@ -17,7 +18,9 @@ class TestExpansions(unittest.TestCase):
|
||||||
return requests.post(urljoin(self.url, "query"), json=query)
|
return requests.post(urljoin(self.url, "query"), json=query)
|
||||||
|
|
||||||
def get_values(self, response):
|
def get_values(self, response):
|
||||||
return response.json()['results'][0]['values']
|
data = response.json()
|
||||||
|
print(json.dumps(data, indent=2))
|
||||||
|
return data['results'][0]['values']
|
||||||
|
|
||||||
def test_cve(self):
|
def test_cve(self):
|
||||||
query = {"module": "cve", "vulnerability": "CVE-2010-3333"}
|
query = {"module": "cve", "vulnerability": "CVE-2010-3333"}
|
||||||
|
|
Loading…
Reference in New Issue