Fix linting

This commit is contained in:
Erin Song 2025-02-06 13:07:30 -08:00
parent 04a08e19dd
commit bcf2f0946c
No known key found for this signature in database

View file

@ -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"""