-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates docs and create test for canal change (#2100)
* update docs and create test for canal change * Fixed test
- Loading branch information
1 parent
ddc9c47
commit be63f57
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import dsl | ||
|
||
from . import FixtureTest | ||
|
||
|
||
class TestCanalMinZoom(FixtureTest): | ||
def test_canal(self): | ||
z, x, y = (16, 10483, 25332) | ||
self.generate_fixtures( | ||
dsl.way(76287073, dsl.tile_box(z, x, y), { | ||
'name': 'Ridenbaugh High Line Canal', | ||
'boat': 'no', | ||
'waterway': 'canal', | ||
'source': 'openstreetmap.org' | ||
}) | ||
) | ||
|
||
self.assert_has_feature( | ||
z, x, y, 'water', | ||
{'id': 76287073, | ||
'name': 'Ridenbaugh High Line Canal', | ||
'kind': 'canal', | ||
'min_zoom': 11, | ||
'source': 'openstreetmap.org'}) | ||
|
||
def test_boat_canal(self): | ||
z, x, y = (16, 10483, 25332) | ||
self.generate_fixtures( | ||
dsl.way(85123623, dsl.tile_box(z, x, y), { | ||
'name': 'Canal de Bourgogne', | ||
'access': 'boat', | ||
'boat': 'yes', | ||
'fishing': 'yes', | ||
'waterway': 'canal', | ||
'source': 'openstreetmap.org' | ||
}) | ||
) | ||
|
||
self.assert_has_feature( | ||
z, x, y, 'water', | ||
{'id': 85123623, | ||
'name': 'Canal de Bourgogne', | ||
'kind': 'canal', | ||
'boat': 'yes', | ||
'min_zoom': 9, | ||
'source': 'openstreetmap.org'}) |