Skip to content

Commit

Permalink
add exareme test for modulo2
Browse files Browse the repository at this point in the history
  • Loading branch information
ezacharia committed Nov 17, 2020
1 parent 3435238 commit 4dfff46
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@
from tests import vm_url



def test_parameter_modulo2():

endpointUrl1 = vm_url + "TTEST_PAIRED"

logging.info("---------- TEST : t-test input parameters throwing error.")
data = [
{"name": "y", "value": "lefthippocampus-righthippocampus,leftententorhinalarea"},
{"name": "hypothesis", "value": "different"},
{"name": "pathology", "value": "dementia"},
{"name": "dataset", "value": "desd-synthdata"},
{"name": "filter", "value": ""},
]
headers = {"Content-type": "application/json", "Accept": "text/plain"}
r = requests.post(endpointUrl1, data=json.dumps(data), headers=headers)
result = json.loads(r.text)
assert(result["result"][0]["data"]==" The input should be in the form of y1-y2,y3-y4,.. Therefore the number of variables should be modulo 2 ")
assert(result["result"][0]["type"]=="text/plain+user_error")



def test_valueEnumerationsParameter():

endpointUrl1 = vm_url + "LINEAR_REGRESSION"
Expand Down

0 comments on commit 4dfff46

Please sign in to comment.