mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +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
|
all tests share superuser; do not change this model in tests
|
||||||
tests have available superuser, client, and admin
|
tests have available superuser, client, and admin
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# csrf checks do not work with WebTest.
|
# csrf checks do not work with WebTest.
|
||||||
# We disable them here. TODO for another ticket.
|
# We disable them here. TODO for another ticket.
|
||||||
csrf_checks = False
|
csrf_checks = False
|
||||||
|
@ -150,7 +151,6 @@ class TestDomainInvitationAdmin(MockEppLib, WebTest):
|
||||||
self.client.force_login(self.superuser)
|
self.client.force_login(self.superuser)
|
||||||
self.app.set_user(self.superuser.username)
|
self.app.set_user(self.superuser.username)
|
||||||
|
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""Delete all DomainInvitation objects"""
|
"""Delete all DomainInvitation objects"""
|
||||||
PortfolioInvitation.objects.all().delete()
|
PortfolioInvitation.objects.all().delete()
|
||||||
|
@ -1128,6 +1128,7 @@ class TestDomainInvitationAdmin(MockEppLib, WebTest):
|
||||||
custom_alert_content = "If you cancel the domain invitation here"
|
custom_alert_content = "If you cancel the domain invitation here"
|
||||||
self.assertContains(response, custom_alert_content)
|
self.assertContains(response, custom_alert_content)
|
||||||
|
|
||||||
|
|
||||||
class TestUserPortfolioPermissionAdmin(TestCase):
|
class TestUserPortfolioPermissionAdmin(TestCase):
|
||||||
"""Tests for the PortfolioInivtationAdmin class"""
|
"""Tests for the PortfolioInivtationAdmin class"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue