Project

General

Profile

0010-tests-fix-inconsistencies-in-opengis-tests-30458.patch

Benjamin Dauvergne, 08 Feb 2019 08:43 AM

Download (1.1 KB)

View differences:

Subject: [PATCH 10/13] tests: fix inconsistencies in opengis tests (#30458)

 tests/test_opengis.py | 6 ++++++
 1 file changed, 6 insertions(+)
tests/test_opengis.py
388 388
    connector.save()
389 389
    endpoint = utils.generic_endpoint_url('opengis', 'reverse', slug=connector.slug)
390 390
    assert endpoint == '/opengis/test/reverse'
391

  
392
    def side_effect(url, **kwargs):
393
        if kwargs['params'].get('request') == 'GetCapabilities':
394
            return utils.FakedResponse(status_code=200, content=FAKE_SERVICE_CAPABILITIES)
395
        return mock.DEFAULT
396
    mocked_get.side_effect = side_effect
391 397
    mocked_get.return_value = utils.FakedResponse(content=FAKE_GEOLOCATED_FEATURE, status_code=200)
392 398
    resp = app.get(endpoint,
393 399
                   params={
394
-