Skip to content
Prev Previous commit
uncomment test
  • Loading branch information
dtkav committed Dec 12, 2019
commit bfbb5190adbef206cb9cb16700b31a4696eca8b6
8 changes: 4 additions & 4 deletions tests/api/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ def test_nullable_parameter(simple_app):
resp = app_client.get('/v1.0/nullable-parameters?time_start=None')
assert json.loads(resp.data.decode('utf-8', 'replace')) == 'it was None'

#time_start = 1010
#resp = app_client.get(
# '/v1.0/nullable-parameters?time_start={}'.format(time_start))
#assert json.loads(resp.data.decode('utf-8', 'replace')) == time_start
time_start = 1010
resp = app_client.get(
'/v1.0/nullable-parameters?time_start={}'.format(time_start))
assert json.loads(resp.data.decode('utf-8', 'replace')) == time_start

resp = app_client.post('/v1.0/nullable-parameters', data={"post_param": 'None'})
assert json.loads(resp.data.decode('utf-8', 'replace')) == 'it was None'
Expand Down