Skip to content

Commit

Permalink
- fixed warnings in travis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Sep 10, 2014
1 parent 28d54f9 commit 2d4b389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custard/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,7 @@
'custard.tests',
)

TEST_RUNNER = 'django.test.runner.DiscoverRunner'

STATIC_URL = '/static/'

2 changes: 2 additions & 0 deletions custard/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
class SimpleModelWithManagerForm(builder.create_modelform()):
class Meta:
model = SimpleModelWithManager
fields = '__all__'

#class ExampleAdmin(admin.ModelAdmin):
# form = ExampleForm
Expand Down Expand Up @@ -171,6 +172,7 @@ def test_get_formfield_for_field(self):
class SimpleModelWithManagerForm2(builder2.create_modelform(field_types=settings.CUSTOM_FIELD_TYPES)):
class Meta:
model = SimpleModelWithManager
fields = '__all__'

form = SimpleModelWithManagerForm2(data={}, instance=self.obj)
self.assertIsNotNone(form.get_formfield_for_field(self.cf))
Expand Down

0 comments on commit 2d4b389

Please sign in to comment.