General tests working

This commit is contained in:
Slater-Victoroff
2014-05-05 00:22:48 -04:00
parent 934424ead5
commit af23af6702
5 changed files with 32 additions and 38 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ def spam(test_text):
response = requests.post(base_url("spam"), data=data_dict, headers=headers)
return json.loads(response.content)
def sentiment(test_text):
def posneg(test_text):
data_dict = json.dumps({'text': test_text})
response = requests.post(base_url("sentiment"), data=data_dict, headers=headers)
return json.loads(response.content)