def test_for_web(client, mp_tmpdir):
    'Send GTiff via flask.'
    tile_base_url = '/wmts_simple/1.0.0/cleantopo_br/default/WGS84/'
    for url in ['/']:
        response = client.get(url)
        assert (response.status_code == 200)
    for url in [(tile_base_url + '5/30/62.tif'), (tile_base_url + '5/30/63.tif'), (tile_base_url + '5/31/62.tif'), (tile_base_url + '5/31/63.tif')]:
        response = client.get(url)
        assert (response.status_code == 200)
        img = response.data
        with warnings.catch_warnings():
            warnings.simplefilter('ignore')
            with MemoryFile(img) as memfile:
                with memfile.open() as dataset:
                    assert dataset.read().any()
Send GTiff via flask.
def test_for_web(client, mp_tmpdir):
    
    tile_base_url = '/wmts_simple/1.0.0/cleantopo_br/default/WGS84/'
    for url in ['/']:
        response = client.get(url)
        assert (response.status_code == 200)
    for url in [(tile_base_url + '5/30/62.tif'), (tile_base_url + '5/30/63.tif'), (tile_base_url + '5/31/62.tif'), (tile_base_url + '5/31/63.tif')]:
        response = client.get(url)
        assert (response.status_code == 200)
        img = response.data
        with warnings.catch_warnings():
            warnings.simplefilter('ignore')
            with MemoryFile(img) as memfile:
                with memfile.open() as dataset:
                    assert dataset.read().any()