Skip to content

Commit

Permalink
fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-880 committed Aug 2, 2024
1 parent 5a95503 commit 13aca98
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions python/tests/test_graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,18 @@ def test_get_graphs_returns_graph_list_if_graphs_found():

# Assert if all graphs present in the work_dir are discoverable
query = """{ graphs { name, path } }"""
assert client.query(query) == {
'graphs': {'name': ['g1', 'g2', 'g3'], 'path': ['g1', 'shivam/g2', 'shivam/g3']}
response = client.query(query)
sorted_response = {
'graphs': {
'name': sorted(response['graphs']['name']),
'path': sorted(response['graphs']['path'])
}
}
assert sorted_response == {
'graphs': {
'name': ['g1', 'g2', 'g3'],
'path': ['g1', 'shivam/g2', 'shivam/g3']
}
}


Expand Down

0 comments on commit 13aca98

Please sign in to comment.