Skip to content
Snippets Groups Projects
Commit 04b81ece authored by Jayesh's avatar Jayesh :cat2:
Browse files

Refactor origin node functional tests

Replace f-strings with query variables
Related to T4306
parent 66c55a2f
No related branches found
No related tags found
1 merge request!24Refactor origin node functional tests
......@@ -22,27 +22,30 @@ def test_invalid_get(client):
@pytest.mark.parametrize("origin", get_origins())
def test_get(client, storage, origin):
query_str = f"""
{{
origin(url: "{origin.url}") {{
query_str = (
"""
{
origin(url: "%s") {
url
id
visits(first: 10) {{
nodes {{
visits(first: 10) {
nodes {
id
}}
}}
latestVisit {{
}
}
latestVisit {
visitId
}}
snapshots(first: 2) {{
nodes {{
}
snapshots(first: 2) {
nodes {
id
}}
}}
}}
}}
}
}
}
}
"""
% origin.url
)
response, _ = get_query_response(client, query_str)
data_origin = response["origin"]
......
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