Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Nov 28, 2024
1 parent 003f80a commit e1f79db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/titiler/mosaic/tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from contextlib import contextmanager
from dataclasses import dataclass
from io import BytesIO
from unittest.mock import patch

import morecantile
import numpy
Expand Down Expand Up @@ -356,10 +357,9 @@ def test_MosaicTilerFactory_PixelSelectionParams():
assert (npy_tile != npy_tile_highest).any()


def test_MosaicTilerFactory_strict_zoom(monkeypatch):
@patch("titiler.mosaic.factory.MOSAIC_STRICT_ZOOM", new=True)
def test_MosaicTilerFactory_strict_zoom():
"""Test MosaicTilerFactory factory with STRICT Zoom Mode"""
monkeypatch.setenv("MOSAIC_STRICT_ZOOM", "TRUE")

mosaic = MosaicTilerFactory()
app = FastAPI()
app.include_router(mosaic.router)
Expand Down

0 comments on commit e1f79db

Please sign in to comment.