Skip to content

Commit

Permalink
Simplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed May 2, 2021
1 parent 2f21319 commit 750ffa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_bootstrap_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
class BootstrapAlertTestCase(BootstrapTestCase):
def test_bootstrap_alert(self):
self.assertEqual(
self.render('{% bootstrap_alert "content" dismissible=False %}', None),
self.render('{% bootstrap_alert "content" dismissible=False %}'),
'<div class="alert alert-info" role="alert">content</div>',
)

def test_bootstrap_alert_type_invalid(self):
with self.assertRaises(ValueError):
self.render('{% bootstrap_alert "content" alert_type="nope" %}', None)
self.render('{% bootstrap_alert "content" alert_type="nope" %}')

def test_bootstrap_alert_dismissible(self):
self.assertEqual(
Expand Down

0 comments on commit 750ffa2

Please sign in to comment.