{"html_url": "https://github.com/simonw/datasette/issues/898#issuecomment-660419792", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/898", "id": 660419792, "node_id": "MDEyOklzc3VlQ29tbWVudDY2MDQxOTc5Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-18T03:57:46Z", "updated_at": "2020-07-18T03:57:46Z", "author_association": "OWNER", "body": "This requires some thought. There are various testing utilities that don't exist yet that plugins might benefit from - off the top of my head:\r\n\r\n- `assert_permissions_checked`\r\n- `assert_template_rendered`\r\n\r\nI should resist the temptation to provide a reusable version of `make_app_client` that provides a fully configured Datasette instance because I need to be able to change the design of the Datasette `fixtures.db` test database without accidentally breaking any plugins that depend on it.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 659873662, "label": "datasette.utils.testing module"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/898#issuecomment-660419499", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/898", "id": 660419499, "node_id": "MDEyOklzc3VlQ29tbWVudDY2MDQxOTQ5OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-18T03:55:13Z", "updated_at": "2020-07-18T03:55:13Z", "author_association": "OWNER", "body": "Maybe I should make `httpx` a testing dependency of Datasette itself. It's usage is already encouraged in plugins by https://datasette.readthedocs.io/en/stable/testing_plugins.html", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 659873662, "label": "datasette.utils.testing module"}, "performed_via_github_app": null}