Exemplo n.º 1
0
def test_TileServer_get_template_url():
    """Should work as expected (create TileServer object and get template url)."""
    r = RasterTiles(raster_path)
    app = TileServer(r)
    assert app.get_template_url() == "http://127.0.0.1:8080/index.html"
Exemplo n.º 2
0
def test_TileServer_get_tiles_url():
    """Should work as expected (create TileServer object and get tiles endpoint)."""
    r = RasterTiles(raster_path)
    app = TileServer(r)
    assert app.get_tiles_url() == "http://127.0.0.1:8080/tiles/{z}/{x}/{y}.png"