diff options
| -rw-r--r-- | fietsboek/osm.py | 3 | ||||
| -rw-r--r-- | testing.ini | 2 |
2 files changed, 5 insertions, 0 deletions
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 <test@localhost> email.smtp_url = debug:// |
