Check if the zoom level works for the given tileset.
(zoom, tiles, session)
| 32 | |
| 33 | |
| 34 | def _is_working_zoom_level(zoom, tiles, session): |
| 35 | """Check if the zoom level works for the given tileset.""" |
| 36 | url = tiles.format(s="a", x=0, y=0, z=zoom) |
| 37 | response = session.get(url, timeout=5) |
| 38 | if response.status_code < 400: |
| 39 | return True |
| 40 | return False |
| 41 | |
| 42 | |
| 43 | def test_custom_tile_subdomains(): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…