Skip to content

Commit

Permalink
suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
disconnect821 committed Aug 12, 2023
1 parent 64e5fd1 commit b6ddc22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wagtail_ab_testing/test/tests/test_abtest_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ def test_check_raise_protect_error(self):
Test to check if ProtectedError is raised when associated revision is deleted
"""
with self.assertRaises(ProtectedError):
revision = self.ab_test.variant_revision
revision.delete()
self.ab_test.variant_revision.delete()


class TestAutoCancelOnUnpublish(TestCase):
Expand Down

0 comments on commit b6ddc22

Please sign in to comment.