0001-cmis-add-streets-to-indexing_template_view-test-7464.patch
tests/test_opengis.py | ||
---|---|---|
1025 | 1025 |
app = login(app) |
1026 | 1026 |
resp = app.get(url + '?template=') |
1027 | 1027 |
assert resp.json['data'] == [] |
1028 | 1028 | |
1029 | 1029 |
resp = app.get(url + '?template={{a}b}}') |
1030 | 1030 |
assert resp.json['data'] == [] |
1031 | 1031 | |
1032 | 1032 |
resp = app.get(url + '?template={{nom_commune}} {{nom_voie}}') |
1033 |
assert resp.json['data'] == ['grenoble', 'grenoble', 'grenoble place victor hugo'] |
|
1033 |
assert resp.json['data'] == [ |
|
1034 |
'grenoble boulevard edouard rey', |
|
1035 |
'grenoble place victor hugo', |
|
1036 |
'grenoble boulevard edouard rey', |
|
1037 |
] |
|
1034 | 1038 | |
1035 | 1039 |
resp = app.get('/manage/opengis/%s/query/%s/' % (connector.slug, query.pk)) |
1036 | 1040 |
assert url in resp.text |
1037 | 1041 |
assert 'Test template' in resp.text |
1038 | 1042 | |
1039 | 1043 | |
1040 | 1044 |
def test_opengis_query_creation_validates_template(admin_user, app, connector): |
1041 | 1045 |
app = login(app) |
1042 |
- |