Skip to content

Commit

Permalink
Merge pull request #465 from Living-with-machines/adding-remaining-co…
Browse files Browse the repository at this point in the history
…rrect-urls
  • Loading branch information
kallewesterling authored Jul 26, 2024
2 parents 5292dd6 + 44c0385 commit 5cace96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_sheet_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_init(sheet_downloader):

def test_init_errors(sample_dir):
test_json = f"{sample_dir}/test_json.json" # crs changed to EPSG:3857 (note: coordinates are wrong in file)
download_url = "https://geo.nls.uk/maps/os/1inch_2nd_ed/{z}/{x}/{y}.png"
download_url = "https://mapseries-tilesets.s3.amazonaws.com/1inch_2nd_ed/{z}/{x}/{y}.png"
with pytest.raises(ValueError, match="file not found"):
SheetDownloader("fake_file.json", download_url)
with pytest.raises(ValueError, match="string or list of strings"):
Expand Down Expand Up @@ -67,7 +67,7 @@ def test_get_grid_bb(sheet_downloader):

def test_get_grid_bb_errors(sample_dir):
test_json = f"{sample_dir}/test_json_epsg3857.json" # crs changed to EPSG:3857 (note: coordinates are wrong in file)
download_url = "https://geo.nls.uk/maps/os/1inch_2nd_ed/{z}/{x}/{y}.png"
download_url = "https://mapseries-tilesets.s3.amazonaws.com/1inch_2nd_ed/{z}/{x}/{y}.png"
sd = SheetDownloader(test_json, download_url)
with pytest.raises(NotImplementedError, match="EPSG:4326"):
sd.get_grid_bb()
Expand Down

0 comments on commit 5cace96

Please sign in to comment.