Python formatting

This commit is contained in:
Mouse Reeve 2021-11-11 13:39:58 -08:00
parent c744faf393
commit ffcaef0559

View file

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