Skip to content

Commit

Permalink
Make flake8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Sep 7, 2013
1 parent f1c8d73 commit bd5cfab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leaflet/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,15 @@ class PolygonWidget(LeafletWidget):
self.assertIn('#geometry { display: none; }', output)
self.assertIn('function geometry_map_callback(map, options)', output)


class LeafletModelFormTest(SimpleTestCase):

def test_modelform_field_conformity(self):
class DummyForm(django.forms.ModelForm):
geom = fields.PointField()

class Meta:
model = DummyModel

form = DummyForm()
output = form.as_p()
self.assertIn(".geom_type = 'Point'", output)
Expand All @@ -165,7 +166,6 @@ class Meta:
output = form.as_p()
self.assertIn(".geom_type = 'Point'", output)


class LeafletGeoAdminMapTest(LeafletGeoAdminTest):

def test_widget_template_overriden(self):
Expand Down

0 comments on commit bd5cfab

Please sign in to comment.