bookwyrm/bookwyrm/tests
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
..
activitypub Fix resource leaks 2024-03-29 20:14:10 +01:00
activitystreams Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
connectors Fix remaining instances of bad-classmethod-argument 2024-03-17 21:28:55 -03:00
data Add wikidata field for authors 2024-02-03 22:55:33 +00:00
importers Fix resource leaks 2024-03-29 20:14:10 +01:00
lists_stream Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
management Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
models Fix resource leaks 2024-03-29 20:14:10 +01:00
templatetags Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
utils fix tests 2023-10-23 20:42:56 +11:00
views Fix resource leaks 2024-03-29 20:14:10 +01:00
__init__.py Python formatting 2022-04-08 14:24:14 -07:00
test_author_search.py Add tests for author search 2024-03-23 19:26:51 +01:00
test_book_search.py Merge from main into 'better-fmt-patch-calls' 2024-03-27 17:13:08 -03:00
test_context_processors.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_emailing.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_isbn.py Adds test for invalid isbns and handle isbns with dashes 2023-11-02 19:03:15 -07:00
test_partial_date.py Rename utils.sealed_date module (and tests) to utils.partial_date 2023-11-09 14:00:44 -03:00
test_preview_images.py Fix resource leaks 2024-03-29 20:14:10 +01:00
test_sanitize_html.py Use "strip" in bleach 2022-07-04 13:55:58 -07:00
test_signing.py Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
test_suggested_users.py Bracket-wrap calls to patch() for better readability 2024-03-17 20:34:12 -03:00
test_utils.py Add helper to refer views back to http referers safely 2023-03-20 10:25:38 -07:00
validate_html.py Adds view tests for shelf filters (#3162) 2024-02-20 16:25:01 -08:00