Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/tests/functional/test_search.py
Show All 35 Lines | assert data == { | ||||
{ | { | ||||
"target": { | "target": { | ||||
"url": "https://somewhere.org/den/fox", | "url": "https://somewhere.org/den/fox", | ||||
"latestVisit": {"date": "2018-11-27T17:20:39+00:00"}, | "latestVisit": {"date": "2018-11-27T17:20:39+00:00"}, | ||||
}, | }, | ||||
"targetType": "origin", | "targetType": "origin", | ||||
} | } | ||||
], | ], | ||||
"pageInfo": {"endCursor": "MQ==", "hasNextPage": True}, | "pageInfo": {"endCursor": "VFJLSkplR1IxSkpFSEROT0hU", "hasNextPage": True}, | ||||
} | } | ||||
} | } | ||||
def test_search_missing_url(client): | def test_search_missing_url(client): | ||||
query_str = """ | query_str = """ | ||||
query doSearch($query: String!, $first: Int!) { | query doSearch($query: String!, $first: Int!) { | ||||
search(query: $query, first: $first) { | search(query: $query, first: $first) { | ||||
Show All 12 Lines |