Skip to content

Commit

Permalink
Apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 3, 2024
1 parent 2ad34f5 commit 1bc47d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoportal/tests/functional/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ def teardown_common() -> None:
def create_default_ogcserver(session: Session) -> "main.OGCServer":
from c2cgeoportal_commons.models.main import OGCServer

session.flush()
ogcserver = session.query(OGCServer).filter(OGCServer.name == "__test_ogc_server").one_or_none()
if ogcserver is None:
ogcserver = OGCServer(name="__test_ogc_server")
ogcserver.url = mapserv_url
session.add(ogcserver)
caching.invalidate_region()
session.flush()

return ogcserver

Expand Down

0 comments on commit 1bc47d6

Please sign in to comment.