Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 28, 2024
1 parent 039b1ca commit 2e4bf91
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
4 changes: 3 additions & 1 deletion acceptance_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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... ")
Expand Down
16 changes: 12 additions & 4 deletions acceptance_tests/test_landingpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
7 changes: 5 additions & 2 deletions acceptance_tests/test_wms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2e4bf91

Please sign in to comment.