mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Fix linting
This commit is contained in:
parent
04a08e19dd
commit
bcf2f0946c
1 changed files with 2 additions and 1 deletions
|
@ -128,6 +128,7 @@ class TestDomainInvitationAdmin(MockEppLib, WebTest):
|
|||
all tests share superuser; do not change this model in tests
|
||||
tests have available superuser, client, and admin
|
||||
"""
|
||||
|
||||
# csrf checks do not work with WebTest.
|
||||
# We disable them here. TODO for another ticket.
|
||||
csrf_checks = False
|
||||
|
@ -150,7 +151,6 @@ class TestDomainInvitationAdmin(MockEppLib, WebTest):
|
|||
self.client.force_login(self.superuser)
|
||||
self.app.set_user(self.superuser.username)
|
||||
|
||||
|
||||
def tearDown(self):
|
||||
"""Delete all DomainInvitation objects"""
|
||||
PortfolioInvitation.objects.all().delete()
|
||||
|
@ -1128,6 +1128,7 @@ class TestDomainInvitationAdmin(MockEppLib, WebTest):
|
|||
custom_alert_content = "If you cancel the domain invitation here"
|
||||
self.assertContains(response, custom_alert_content)
|
||||
|
||||
|
||||
class TestUserPortfolioPermissionAdmin(TestCase):
|
||||
"""Tests for the PortfolioInivtationAdmin class"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue