Commit 0ca5d143 authored by Ismail Moumni's avatar Ismail Moumni
Browse files

edit

parent d4ea05c7
Pipeline #709 failed with stage
in 13 seconds
......@@ -49,7 +49,8 @@ def query_valid(data: dict):
if 'parameters' in data:
if (data['parameters'] != '') & (len(data) <= 2):
return True
return False
else:
return False
# Function send_param_client send a Dict containing parameters
......@@ -124,6 +125,7 @@ def verif_param(data: dict):
raise Exception("Error Database")
'''
if __name__ == '__main__':
tool = 'Regal'
# sa = ({'Regal': {'size': '', 'asize': '', 'outputf': '', 'number': '', 'comp': '', 'min': '', 'con': ''}}, {'size': '10', 'asize': '2', 'outputf': '', 'number': '1', 'comp': 'yes', 'min': '', 'con': ''})
......@@ -134,3 +136,4 @@ if __name__ == '__main__':
data_test1 = '{"parameters":"request"}'
data_load = json.loads(data_test1)
print(query_valid(data_load) is True)
'''
......@@ -9,8 +9,8 @@ sys.path.append(os.path.realpath('../softwares/'))
import server.server as serv # noqa E402
data_test1 = '{"parameters":"request"}'
data_test2 = '{"Ref":"Parameters"}'
data_test1 = '{"parameters": "request"}'
data_test2 = '{"Ref": "Parameters"}'
data_load = json.loads(data_test1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment