opendatasoft: correct tests (#50212)
This commit is contained in:
parent
e4fbfd7f97
commit
9b88f614aa
|
@ -191,7 +191,7 @@ def test_search_using_q(mocked_get, app, connector):
|
|||
'dataset': 'referentiel-adresse-test',
|
||||
'text_template': '{{numero}} {{nom_rue}} {{nom_commun}}',
|
||||
'q': "rue de l'aubepine",
|
||||
'rows': 3,
|
||||
'limit': 3,
|
||||
}
|
||||
mocked_get.return_value = utils.FakedResponse(content=FAKED_CONTENT_Q_SEARCH, status_code=200)
|
||||
resp = app.get(endpoint, params=params, status=200)
|
||||
|
@ -233,7 +233,7 @@ def test_query_q_using_q(mocked_get, app, query):
|
|||
endpoint = '/opendatasoft/my_connector/q/my_query/'
|
||||
params = {
|
||||
'q': "rue de l'aubepine",
|
||||
'rows': 3,
|
||||
'limit': 3,
|
||||
}
|
||||
mocked_get.return_value = utils.FakedResponse(content=FAKED_CONTENT_Q_SEARCH, status_code=200)
|
||||
resp = app.get(endpoint, params=params, status=200)
|
||||
|
|
Loading…
Reference in New Issue