@ -4,7 +4,7 @@ from hc.test import BaseTestCase | |||||
class ChannelChecksTestCase(BaseTestCase): | class ChannelChecksTestCase(BaseTestCase): | ||||
def setUp(self): | def setUp(self): | ||||
super(ChannelChecksTestCase, self).setUp() | |||||
super().setUp() | |||||
self.channel = Channel(project=self.project, kind="email") | self.channel = Channel(project=self.project, kind="email") | ||||
self.channel.value = "[email protected]" | self.channel.value = "[email protected]" | ||||
self.channel.save() | self.channel.save() | ||||
@ -4,7 +4,7 @@ from hc.test import BaseTestCase | |||||
class RemoveChannelTestCase(BaseTestCase): | class RemoveChannelTestCase(BaseTestCase): | ||||
def setUp(self): | def setUp(self): | ||||
super(RemoveChannelTestCase, self).setUp() | |||||
super().setUp() | |||||
self.channel = Channel(project=self.project, kind="email") | self.channel = Channel(project=self.project, kind="email") | ||||
self.channel.value = "[email protected]" | self.channel.value = "[email protected]" | ||||
self.channel.save() | self.channel.save() | ||||
@ -8,7 +8,7 @@ from hc.test import BaseTestCase | |||||
class SendTestNotificationTestCase(BaseTestCase): | class SendTestNotificationTestCase(BaseTestCase): | ||||
def setUp(self): | def setUp(self): | ||||
super(SendTestNotificationTestCase, self).setUp() | |||||
super().setUp() | |||||
self.channel = Channel(kind="email", project=self.project) | self.channel = Channel(kind="email", project=self.project) | ||||
self.channel.email_verified = True | self.channel.email_verified = True | ||||
self.channel.value = "[email protected]" | self.channel.value = "[email protected]" | ||||
@ -8,7 +8,7 @@ from hc.test import BaseTestCase | |||||
class UnsubscribeEmailTestCase(BaseTestCase): | class UnsubscribeEmailTestCase(BaseTestCase): | ||||
def setUp(self): | def setUp(self): | ||||
super(UnsubscribeEmailTestCase, self).setUp() | |||||
super().setUp() | |||||
self.channel = Channel(project=self.project, kind="email") | self.channel = Channel(project=self.project, kind="email") | ||||
self.channel.value = "[email protected]" | self.channel.value = "[email protected]" | ||||
self.channel.save() | self.channel.save() | ||||
@ -4,7 +4,7 @@ from hc.test import BaseTestCase | |||||
class VerifyEmailTestCase(BaseTestCase): | class VerifyEmailTestCase(BaseTestCase): | ||||
def setUp(self): | def setUp(self): | ||||
super(VerifyEmailTestCase, self).setUp() | |||||
super().setUp() | |||||
self.channel = Channel(project=self.project, kind="email") | self.channel = Channel(project=self.project, kind="email") | ||||
self.channel.value = "[email protected]" | self.channel.value = "[email protected]" | ||||
self.channel.save() | self.channel.save() | ||||
@ -6,7 +6,7 @@ from hc.accounts.models import Member, Profile, Project | |||||
class BaseTestCase(TestCase): | class BaseTestCase(TestCase): | ||||
def setUp(self): | def setUp(self): | ||||
super(BaseTestCase, self).setUp() | |||||
super().setUp() | |||||
# Alice is a normal user for tests. Alice has team access enabled. | # Alice is a normal user for tests. Alice has team access enabled. | ||||
self.alice = User(username="alice", email="[email protected]") | self.alice = User(username="alice", email="[email protected]") | ||||