bookwyrm/bookwyrm/tests/models
Bart Schuurmans ffee29d8e2 Fix resource leaks
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().
2024-03-29 20:14:10 +01:00
..
__init__.py Updates init files for pylint 2022-04-08 14:16:05 -07:00
test_activitypub_mixin.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_automod.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_base_model.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_book_model.py Fix resource leaks 2024-03-29 20:14:10 +01:00
test_bookwyrm_export_job.py Bracket-wrap calls to patch() for better readability 2024-03-17 20:34:12 -03:00
test_bookwyrm_import_job.py Remove nesting in several with..patch calls 2024-03-17 20:57:39 -03:00
test_federated_server.py Refactors test mocks 2021-08-02 16:05:40 -07:00
test_fields.py Fix resource leaks 2024-03-29 20:14:10 +01:00
test_group.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_import_model.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_link.py Use setUpTestData() to speed up tests 2023-12-11 19:40:30 -03:00
test_list.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_notification.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_readthrough_model.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_relationship_models.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_shelf_model.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_site.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_status_model.py Fix resource leaks 2024-03-29 20:14:10 +01:00
test_user_model.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00