1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-09-13 18:12:21 +00:00

Refactored conversion and postprocessing

This commit is contained in:
J. Fernando Sánchez
2018-11-22 17:27:43 +01:00
parent b48730137d
commit 41aa142ce0
13 changed files with 486 additions and 199 deletions

View File

@@ -138,14 +138,14 @@ class BlueprintsTest(TestCase):
# Calling dummy twice, should return the same string
self.assertCode(resp, 200)
js = parse_resp(resp)
assert len(js['analysis']) == 2
assert len(js['analysis']) == 1
assert js['entries'][0]['nif:isString'] == 'My aloha mohame'
resp = self.client.get("/api/Dummy+Dummy?i=My aloha mohame")
# Same with pluses instead of slashes
self.assertCode(resp, 200)
js = parse_resp(resp)
assert len(js['analysis']) == 2
assert len(js['analysis']) == 1
assert js['entries'][0]['nif:isString'] == 'My aloha mohame'
def test_error(self):