Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jun 3, 2021
1 parent 02d0458 commit b23741f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tcms_tenants/tests/test_publicly_readable.py
Expand Up @@ -21,6 +21,11 @@ def setUpClass(cls):
cls.tenant.publicly_readable = True
cls.tenant.save()

@classmethod
def tearDownClass(cls):
cls.tenant.publicly_readable = False
cls.tenant.save()

def test_unauthorized_user_can_view_on_publicly_readable_tenant(self):
response = self.client.get(
reverse('test_plan_url_short', args=[self.test_plan_by_owner.pk]),
Expand Down

0 comments on commit b23741f

Please sign in to comment.