From 8ea11717648b99526502ab106c692f244c6a0ac4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 8 Apr 2022 14:24:14 -0700 Subject: [PATCH] Python formatting --- bookwyrm/tests/__init__.py | 2 +- bookwyrm/tests/activitypub/test_author.py | 6 +++--- bookwyrm/tests/models/test_fields.py | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bookwyrm/tests/__init__.py b/bookwyrm/tests/__init__.py index fd96fb7b..0879d4ec 100644 --- a/bookwyrm/tests/__init__.py +++ b/bookwyrm/tests/__init__.py @@ -1,2 +1,2 @@ """ import ALL the tests """ -from . import * # pylint: disable=import-self +from . import * # pylint: disable=import-self diff --git a/bookwyrm/tests/activitypub/test_author.py b/bookwyrm/tests/activitypub/test_author.py index 04439d13..61d525fc 100644 --- a/bookwyrm/tests/activitypub/test_author.py +++ b/bookwyrm/tests/activitypub/test_author.py @@ -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) diff --git a/bookwyrm/tests/models/test_fields.py b/bookwyrm/tests/models/test_fields.py index ed50d708..13ba6f2c 100644 --- a/bookwyrm/tests/models/test_fields.py +++ b/bookwyrm/tests/models/test_fields.py @@ -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]