Skip to content

Commit

Permalink
Split Zug-Luzern boundary test into zoom 8 and zoom 12 parts, and tes…
Browse files Browse the repository at this point in the history
…t separately.
  • Loading branch information
zerebubuth committed Nov 5, 2018
1 parent f7bc30b commit fb5565c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion integration-test/992-boundaries-min_zoom-and-name.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,20 @@ def test_10m_regions(self):


class BoundariesMinZoomAndNameOsm(FixtureTest):
def test_region_boundary_zug_luzern(self):
def test_region_boundary_zug_luzern_z8(self):
# Switzerland region HAS NO name, OpenStreetMap
self.load_fixtures([
'http://www.openstreetmap.org/relation/1686447',
'http://www.openstreetmap.org/relation/1685677',
], clip=self.tile_bbox(8, 133, 89))

# test that the regional boundary is present at zoom 8, although it
# should have had its name stripped off, since it's very short.
self.assert_has_feature(
8, 133, 89, 'boundaries',
{'kind': 'region', 'name': type(None)})

def test_region_boundary_zug_luzern_z12(self):
# Switzerland region HAS name, OpenStreetMap
# do this at z12, as the boundary between Zug and Luzern is quite
# short, and we want enough space to label.
Expand All @@ -134,6 +147,7 @@ def test_region_boundary_zug_luzern(self):
'http://www.openstreetmap.org/relation/1685677',
], clip=self.tile_bbox(12, 2144, 1438))

# name should be present at zoom 12
self.assert_has_feature(
12, 2144, 1438, 'boundaries',
{'kind': 'region', 'name': 'Zug - Luzern'})
Expand Down

0 comments on commit fb5565c

Please sign in to comment.