Skip to content

Commit

Permalink
Use TypeError when appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed May 3, 2021
1 parent 619a209 commit 0bef592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_bootstrap_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def clean(self):

class BootstrapFormTestCase(BootstrapTestCase):
def test_illegal_form(self):
with self.assertRaises(ValueError):
with self.assertRaises(TypeError):
self.render("{% bootstrap_form form %}", {"form": "illegal"})

def test_exclude(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bootstrap_formset.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ def test_formset_post(self):
)

def test_illegal_formset(self):
with self.assertRaises(ValueError):
with self.assertRaises(TypeError):
self.render("{% bootstrap_formset formset %}", {"formset": "illegal"})

0 comments on commit 0bef592

Please sign in to comment.