From 71a22d1f1c855d0e319ab3e332844cf9655ab546 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 17 Oct 2026 18:46:29 +0200 Subject: skip overpass API requests in tests --- fietsboek/osm.py | 3 +++ testing.ini | 2 ++ 2 files changed, 5 insertions(+) diff --git a/fietsboek/osm.py b/fietsboek/osm.py index 9162cd7..9916afb 100644 --- a/fietsboek/osm.py +++ b/fietsboek/osm.py @@ -80,6 +80,9 @@ class OverpassApi: :param script: The overpass script. :return: The response. """ + if self.url.startswith("http://localhost:0"): + raise ApiNotOk("Skipping overpass in tests.") + try: with self.session.post( self.url, diff --git a/testing.ini b/testing.ini index ed53bdc..5484b04 100644 --- a/testing.ini +++ b/testing.ini @@ -28,6 +28,8 @@ enable_account_registration = true fietsboek.tile_layer.test = Testing Tile Layer fietsboek.tile_layer.test.url = http://localhost:0 +overpass.url = http://localhost:0 + email.from = Test email.smtp_url = debug:// -- cgit v1.2.3