mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-13 18:59:24 +00:00
Rewrite places where files (or other resources) are opened but not closed to "with" blocks, which automatically call close() at the end of the scope. Also simplify some tests where images need to be saved to a model field: an opened file can be passed directly to FileField.save(). |
||
---|---|---|
.. | ||
__init__.py | ||
test_author.py | ||
test_base_activity.py | ||
test_note.py | ||
test_person.py | ||
test_quotation.py |