Commit d82b41ee authored by Ismail Moumni's avatar Ismail Moumni
Browse files


parent fb4297dd
Pipeline #685 failed with stage
in 13 seconds
#!/usr/bin/ python3
# Authors : Julien DAVID & Ismail MOUMNI
import sys
import os
import pytest
import json
from softwares.server import server as serv # noqa E402
data_test1 = '{"parameters":""}'
data_test2 = '{"Ref":"Parameters"}'
data_load = json.loads(data_test1)
data_load2 = json.loads(data_test2)
def test_query_valid(data: dict):
var = serv.query_valid(data_load)
assert var
def test_bad_missing():
with pytest.raises(Exception):
assert serv.query_valid(data_load2)
Supports Markdown
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