datasette/tests
Konstantin Baikov 8e18c79431
Use context manager instead of plain open (#1211)
Context manager with open closes the files after usage.

When the object is already a pathlib.Path i used read_text
write_text functions

In some cases pathlib.Path.open were used in context manager,
it is basically the same as builtin open.

Thanks, Konstantin Baikov!
2021-03-11 08:15:49 -08:00
..
plugins
test_templates
__init__.py
build_small_spatialite_db.py
conftest.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
fixtures.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
spatialite.db
test_api.py
test_auth.py
test_black.py
test_canned_queries.py
test_cli.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
test_cli_serve_get.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
test_cli_serve_server.py
test_config_dir.py
test_crossdb.py
test_csv.py
test_custom_pages.py
test_docs.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
test_facets.py
test_filters.py
test_html.py
test_internal_db.py
test_internals_database.py
test_internals_datasette.py
test_internals_datasette_client.py
test_internals_request.py
test_internals_response.py
test_internals_urls.py
test_messages.py
test_package.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
test_permissions.py
test_plugins.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
test_publish_cloudrun.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
test_publish_heroku.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00
test_utils.py Use context manager instead of plain open (#1211) 2021-03-11 08:15:49 -08:00