1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-09-14 10:32:27 +00:00
This commit is contained in:
J. Fernando Sánchez
2018-10-30 15:15:37 +01:00
parent 6dd4a44924
commit c939b095de
5 changed files with 42 additions and 10 deletions

View File

@@ -67,6 +67,20 @@ class BlueprintsTest(TestCase):
logging.debug("Got response: %s", js)
assert "@context" in js
assert "entries" in js
assert len(js['analysis']) == 1
def test_analysis_post(self):
"""
The results for a POST request should be the same as for a GET request.
"""
resp = self.client.post("/api/", data={'i': 'My aloha mohame',
'with_parameters': True})
self.assertCode(resp, 200)
js = parse_resp(resp)
logging.debug("Got response: %s", js)
assert "@context" in js
assert "entries" in js
assert len(js['analysis']) == 1
def test_analysis_extra(self):
"""