mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Adjusted code style of a few test data setup methods.
Thanks Mariusz for suggesting it.
This commit is contained in:
parent
84e7a9f4a7
commit
7f63b894c0
7 changed files with 18 additions and 36 deletions
|
@ -22,11 +22,7 @@ class SitesFrameworkTests(TestCase):
|
|||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
cls.site = Site(
|
||||
id=settings.SITE_ID,
|
||||
domain="example.com",
|
||||
name="example.com",
|
||||
)
|
||||
cls.site = Site(id=settings.SITE_ID, domain='example.com', name='example.com')
|
||||
cls.site.save()
|
||||
|
||||
def tearDown(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue