diff --git a/acceptance_tests/conftest.py b/acceptance_tests/conftest.py index b37c89a6..fa45791b 100644 --- a/acceptance_tests/conftest.py +++ b/acceptance_tests/conftest.py @@ -17,7 +17,9 @@ def wait_db(): timeout = time.time() + 60.0 - conn_string = "host='db' port='5432' dbname='test' user='www-data' password='www-data'" + conn_string = ( + "host='db' port='5432' dbname='test' user='www-data' password='www-data'" + ) while True: try: LOG.info("Trying to connect to the DB... ") diff --git a/acceptance_tests/test_landingpage.py b/acceptance_tests/test_landingpage.py index 43927c21..e8189e89 100644 --- a/acceptance_tests/test_landingpage.py +++ b/acceptance_tests/test_landingpage.py @@ -2,7 +2,15 @@ def test_langingpage(connection_landingpage): - connection_landingpage.get_raw("mapserv_proxy/qgis", cache_expected=CacheExpected.DONT_CARE) - connection_landingpage.get_raw("mapserv_proxy/qgis/", cache_expected=CacheExpected.DONT_CARE) - connection_landingpage.get_raw("mapserv_proxy/qgis/index.html", cache_expected=CacheExpected.DONT_CARE) - connection_landingpage.get_raw("mapserv_proxy/qgis/index.json", cache_expected=CacheExpected.DONT_CARE) + connection_landingpage.get_raw( + "mapserv_proxy/qgis", cache_expected=CacheExpected.DONT_CARE + ) + connection_landingpage.get_raw( + "mapserv_proxy/qgis/", cache_expected=CacheExpected.DONT_CARE + ) + connection_landingpage.get_raw( + "mapserv_proxy/qgis/index.html", cache_expected=CacheExpected.DONT_CARE + ) + connection_landingpage.get_raw( + "mapserv_proxy/qgis/index.json", cache_expected=CacheExpected.DONT_CARE + ) diff --git a/acceptance_tests/test_wms.py b/acceptance_tests/test_wms.py index 528870bb..416041e1 100644 --- a/acceptance_tests/test_wms.py +++ b/acceptance_tests/test_wms.py @@ -6,9 +6,12 @@ def test_get_capabilities(connection): ns = "{http://www.opengis.net/wms}" answer = connection.get_xml( - "?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0", cache_expected=CacheExpected.DONT_CARE + "?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0", + cache_expected=CacheExpected.DONT_CARE, ) - assert [e.text for e in answer.findall(f"{ns}Service/{ns}Title")] == ["test"], ElementTree.dump(answer) + assert [e.text for e in answer.findall(f"{ns}Service/{ns}Title")] == [ + "test" + ], ElementTree.dump(answer) assert [e.text for e in answer.findall(f".//{ns}Layer/{ns}Name")] == [ "test", "polygons",