API - fix tests on CI - fix #54

This commit is contained in:
Sam 2020-09-16 13:15:41 +02:00
parent a5a2033918
commit 428c9c513a

View File

@ -48,8 +48,10 @@ def get_app(with_config=False):
@pytest.fixture @pytest.fixture
def app(monkeypatch): def app(monkeypatch):
monkeypatch.setenv('EMAIL_URL', 'smtp://none:none@0.0.0.0:1025') monkeypatch.setenv('EMAIL_URL', 'smtp://none:none@0.0.0.0:1025')
monkeypatch.delenv('TILE_SERVER_URL') if os.getenv('TILE_SERVER_URL'):
monkeypatch.delenv('MAP_ATTRIBUTION') monkeypatch.delenv('TILE_SERVER_URL')
if os.getenv('MAP_ATTRIBUTION'):
monkeypatch.delenv('MAP_ATTRIBUTION')
yield from get_app(with_config=True) yield from get_app(with_config=True)