Skip to content

Commit

Permalink
fix tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Feb 12, 2024
1 parent b7a60f7 commit e2e6ca2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_graphql_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ def make_project_query(keys, values, types):


def make_expected_get_variables_values(keys, values):
expected = {}
for i in range(len(keys)):
expected[keys[i]] = values[i]
return expected
return dict(zip(keys, values))


@pytest.mark.parametrize(
Expand All @@ -80,7 +77,7 @@ def make_expected_get_variables_values(keys, values):
def test_get_variables_values(keys, values, types):
query = make_project_query(keys, values, types)
# None means: unexpected exception thrown while adding variables
assert query != None
assert query is not None

expected = make_expected_get_variables_values(keys, values)
assert query.get_variables_values() == expected
Expand Down

0 comments on commit e2e6ca2

Please sign in to comment.