Commit dc09eef2 by Asif Saifuddin Auvi Committed by Tom Christie

Style fix of tests (#4154)

Clean up code style.
parent 8e2787fd
......@@ -16,7 +16,11 @@ class DropdownWithAuthTests(TestCase):
self.username = 'john'
self.email = 'lennon@thebeatles.com'
self.password = 'password'
self.user = User.objects.create_user(self.username, self.email, self.password)
self.user = User.objects.create_user(
self.username,
self.email,
self.password
)
def tearDown(self):
self.client.logout()
......@@ -46,7 +50,11 @@ class NoDropdownWithoutAuthTests(TestCase):
self.username = 'john'
self.email = 'lennon@thebeatles.com'
self.password = 'password'
self.user = User.objects.create_user(self.username, self.email, self.password)
self.user = User.objects.create_user(
self.username,
self.email,
self.password
)
def tearDown(self):
self.client.logout()
......
......@@ -17,7 +17,11 @@ class RESTFrameworkModel(models.Model):
class BasicModel(RESTFrameworkModel):
text = models.CharField(max_length=100, verbose_name=_("Text comes here"), help_text=_("Text description."))
text = models.CharField(
max_length=100,
verbose_name=_("Text comes here"),
help_text=_("Text description.")
)
class BaseFilterableItem(RESTFrameworkModel):
......@@ -84,5 +88,6 @@ class OneToOneTarget(RESTFrameworkModel):
class NullableOneToOneSource(RESTFrameworkModel):
name = models.CharField(max_length=100)
target = models.OneToOneField(OneToOneTarget, null=True, blank=True,
target = models.OneToOneField(
OneToOneTarget, null=True, blank=True,
related_name='nullable_source', on_delete=models.CASCADE)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment