Prevent lint error

See @hughrun 's explanation https://github.com/bookwyrm-social/bookwyrm/pull/3189#issuecomment-1876145423
This commit is contained in:
Carlos Camara 2024-01-04 11:28:17 +01:00
parent 51cb70d344
commit 30c9ec9611
2 changed files with 4 additions and 2 deletions

View file

@ -38,6 +38,8 @@ class ExportViews(TestCase):
parent_work=self.work, parent_work=self.work,
isbn_13="9781234567890", isbn_13="9781234567890",
bnf_id="beep", bnf_id="beep",
start_date="2023-01-04",
finish_date="2024-01-04"
) )
def setUp(self): def setUp(self):
@ -68,5 +70,5 @@ class ExportViews(TestCase):
export.content, export.content,
b"title,author_text,remote_id,openlibrary_key,inventaire_id,librarything_key,goodreads_key,bnf_id,viaf,wikidata,asin,aasin,isfdb,isbn_10,isbn_13,oclc_number,start_date,finish_date,stopped_date,rating,review_name,review_cw,review_content\r\nTest Book,," b"title,author_text,remote_id,openlibrary_key,inventaire_id,librarything_key,goodreads_key,bnf_id,viaf,wikidata,asin,aasin,isfdb,isbn_10,isbn_13,oclc_number,start_date,finish_date,stopped_date,rating,review_name,review_cw,review_content\r\nTest Book,,"
+ self.book.remote_id.encode("utf-8") + self.book.remote_id.encode("utf-8")
+ b",,,,,beep,,,,,,123456789X,9781234567890,,,,,,,,\r\n", + b",,,,,beep,,,,,,123456789X,9781234567890,,,2023-01-04,2024-01-04,,,,\r\n",
) )

View file

@ -103,7 +103,7 @@ class Export(View):
) )
# pylint: disable=no-self-use # pylint: disable=no-self-use,too-many-locals
@method_decorator(login_required, name="dispatch") @method_decorator(login_required, name="dispatch")
class ExportUser(View): class ExportUser(View):
"""Let users export user data to import into another Bookwyrm instance""" """Let users export user data to import into another Bookwyrm instance"""