mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 16:40:36 +00:00
linting
This commit is contained in:
parent
469172947b
commit
26c37de2d4
2 changed files with 1 additions and 7 deletions
|
@ -211,10 +211,7 @@ class AddFileToTar(ChildJob):
|
|||
|
||||
# TODO: will need to get it to the user
|
||||
# from this secure part of the bucket
|
||||
export_data.save(
|
||||
"archive.json",
|
||||
ContentFile(json_data.encode("utf-8"))
|
||||
)
|
||||
export_data.save("archive.json", ContentFile(json_data.encode("utf-8")))
|
||||
|
||||
s3_job.add_file(f"exports/{export_data.name}")
|
||||
s3_job.add_file(f"images/{user.avatar.name}", folder="avatar")
|
||||
|
|
|
@ -141,7 +141,6 @@ class BookwyrmExport(TestCase):
|
|||
book=self.edition,
|
||||
)
|
||||
|
||||
|
||||
# pylint: disable=E1121
|
||||
def test_json_export_user_settings(self):
|
||||
"""Test the json export function for basic user info"""
|
||||
|
@ -160,7 +159,6 @@ class BookwyrmExport(TestCase):
|
|||
)
|
||||
self.assertEqual(user_data["settings"]["default_post_privacy"], "followers")
|
||||
|
||||
|
||||
# pylint: disable=E1121
|
||||
def test_json_export_extended_user_data(self):
|
||||
"""Test the json export function for other non-book user info"""
|
||||
|
@ -184,7 +182,6 @@ class BookwyrmExport(TestCase):
|
|||
self.assertEqual(len(json_data["blocks"]), 1)
|
||||
self.assertEqual(json_data["blocks"][0], "https://your.domain.here/user/badger")
|
||||
|
||||
|
||||
# pylint: disable=E1121
|
||||
def test_json_export_books(self):
|
||||
"""Test the json export function for extended user info"""
|
||||
|
|
Loading…
Reference in a new issue