Skip to content

Commit

Permalink
Apply pre-commit fix
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] committed Nov 4, 2024
1 parent 8ab7d05 commit 251bf3b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 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
)
4 changes: 3 additions & 1 deletion acceptance_tests/test_wms.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ def test_get_capabilities(connection):
"?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 251bf3b

Please sign in to comment.