forked from mirrors/bookwyrm
Python formatting
This commit is contained in:
parent
9921a1e754
commit
8ea1171764
3 changed files with 5 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
|||
""" import ALL the tests """
|
||||
from . import * # pylint: disable=import-self
|
||||
from . import * # pylint: disable=import-self
|
||||
|
|
|
@ -4,10 +4,10 @@ from bookwyrm import models
|
|||
|
||||
|
||||
class Author(TestCase):
|
||||
""" serialize author tests """
|
||||
"""serialize author tests"""
|
||||
|
||||
def setUp(self):
|
||||
""" initial data """
|
||||
"""initial data"""
|
||||
self.book = models.Edition.objects.create(
|
||||
title="Example Edition",
|
||||
remote_id="https://example.com/book/1",
|
||||
|
@ -19,7 +19,7 @@ class Author(TestCase):
|
|||
)
|
||||
|
||||
def test_serialize_model(self):
|
||||
""" check presense of author fields """
|
||||
"""check presense of author fields"""
|
||||
activity = self.author.to_activity()
|
||||
self.assertEqual(activity["id"], self.author.remote_id)
|
||||
self.assertIsInstance(activity["aliases"], list)
|
||||
|
|
|
@ -161,6 +161,7 @@ class ModelFields(TestCase):
|
|||
@dataclass(init=False)
|
||||
class TestActivity(ActivityObject):
|
||||
"""real simple mock"""
|
||||
|
||||
# pylint: disbale=invalid-name
|
||||
to: List[str]
|
||||
cc: List[str]
|
||||
|
|
Loading…
Reference in a new issue