mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-28 04:21:07 +00:00
Python formatting
This commit is contained in:
parent
c744faf393
commit
ffcaef0559
1 changed files with 4 additions and 4 deletions
|
@ -59,11 +59,11 @@ class ImportViews(TestCase):
|
|||
form.data["privacy"] = "public"
|
||||
form.data["include_reviews"] = False
|
||||
csv_file = pathlib.Path(__file__).parent.joinpath("../data/goodreads.csv")
|
||||
form.data[
|
||||
"csv_file"
|
||||
] = SimpleUploadedFile(
|
||||
form.data["csv_file"] = SimpleUploadedFile(
|
||||
# pylint: disable=consider-using-with
|
||||
csv_file, open(csv_file, "rb").read(), content_type="text/csv"
|
||||
csv_file,
|
||||
open(csv_file, "rb").read(),
|
||||
content_type="text/csv",
|
||||
)
|
||||
|
||||
request = self.factory.post("", form.data)
|
||||
|
|
Loading…
Reference in a new issue