Skip to content

Commit

Permalink
Fix empty geom test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Brunner committed Aug 8, 2013
1 parent 94c07f8 commit c2ef362
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tilecloud_chain/tests/test_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,24 @@ def test_empty_bbox(self, l):
for d in ('-d', ''):
self.assert_tiles_generated(
cmd='./buildout/bin/generate_tiles %s -c tilegeneration/test-nosns.yaml '
'-l point_hash --bbox 700000 250000 800000 300000',
'-l point_hash --bbox 700000 250000 800000 300000' % d,
main_func=generate.main,
directory="/tmp/tiles/",
tiles_pattern='1.0.0/%s',
tiles=[
]
)
# second time for the debug mode
l.check(
('tilecloud_chain', 'WARNING', "bounds empty for zoom 0"),
('tilecloud_chain', 'WARNING', "bounds empty for zoom 1"),
('tilecloud_chain', 'WARNING', "bounds empty for zoom 2"),
('tilecloud_chain', 'WARNING', "bounds empty for zoom 3"),
('tilecloud_chain', 'WARNING', "bounds empty for zoom 0"),
('tilecloud_chain', 'WARNING', "bounds empty for zoom 1"),
('tilecloud_chain', 'WARNING', "bounds empty for zoom 2"),
('tilecloud_chain', 'WARNING', "bounds empty for zoom 3"),
)

@attr(zoom=True)
@attr(general=True)
Expand Down

0 comments on commit c2ef362

Please sign in to comment.