This commit is contained in:
Hugh Rundle 2024-01-20 07:16:42 +11:00
parent 469172947b
commit 26c37de2d4
No known key found for this signature in database
GPG key ID: A7E35779918253F9
2 changed files with 1 additions and 7 deletions

View file

@ -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")

View file

@ -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"""