chg: Add print to figure out what's going on on travis.

pull/322/head
Raphaël Vinot 2019-07-24 09:35:55 +02:00
parent 79992f0204
commit 40c70c1a53
1 changed files with 4 additions and 1 deletions

View File

@ -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"}