Skip to content
Snippets Groups Projects
Commit 026d245a authored by Ismail Moumni's avatar Ismail Moumni
Browse files

errors corrected

parent b87d82fa
No related branches found
No related tags found
1 merge request!7addding help function
Pipeline #1498 failed with stage
in 15 seconds
...@@ -11,10 +11,10 @@ test_dict2 = {"name": "Michael", "Rafael": ""} ...@@ -11,10 +11,10 @@ test_dict2 = {"name": "Michael", "Rafael": ""}
def test_missing_keys(): def test_missing_keys():
var = client.RdosClient.missing_keys(test_dict1, test_dict2) var = client.RdosClient.missing_keys(client.RdosClient, test_dict1, test_dict2)
assert not var assert not var
def test_bad_missing(): def test_bad_missing():
with pytest.raises(Exception): with pytest.raises(Exception):
assert client.RdosClient.missing_keys({}, test_dict1) assert client.RdosClient.missing_keys(client.RdosClient, {}, test_dict1)
...@@ -14,15 +14,15 @@ obj2 = json.loads(bad_data) ...@@ -14,15 +14,15 @@ obj2 = json.loads(bad_data)
def test_match_dict(): def test_match_dict():
var = client.RdosClient.missing_keys(obj, obj) var = client.RdosClient.missing_keys(client.RdosClient, obj, obj)
assert var == [] assert var == []
def test_diff_match_dict(): def test_diff_match_dict():
result = client.RdosClient.missing_keys(obj, obj2) result = client.RdosClient.missing_keys(client.RdosClient, obj, obj2)
assert result is not None assert result is not None
def test_bad_match_dict(): def test_bad_match_dict():
with pytest.raises(Exception): with pytest.raises(Exception):
assert client.RdosClient.missing_keys({}, obj) assert client.RdosClient.missing_keys(client.RdosClient, {}, obj)
...@@ -15,15 +15,15 @@ obj2 = (json.loads(data2)) ...@@ -15,15 +15,15 @@ obj2 = (json.loads(data2))
def test_missing_json(): def test_missing_json():
var = client.RdosClient.missing_keys(obj, obj) var = client.RdosClient.missing_keys(client.RdosClient, obj, obj)
assert var == [] assert var == []
def test_diff_missing_json(): def test_diff_missing_json():
result = client.RdosClient.missing_keys(obj, obj2) result = client.RdosClient.missing_keys(client.RdosClient, obj, obj2)
assert result is not None assert result is not None
def test_bad_match_json(): def test_bad_match_json():
with pytest.raises(Exception): with pytest.raises(Exception):
assert client.RdosClient.missing_keys({}, obj) assert client.RdosClient.missing_keys(client.RdosClient, {}, obj)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment