html_url,issue_url,id,node_id,user,user_label,created_at,updated_at,author_association,body,reactions,issue,issue_label,performed_via_github_app https://github.com/simonw/datasette/issues/580#issuecomment-554109342,https://api.github.com/repos/simonw/datasette/issues/580,554109342,MDEyOklzc3VlQ29tbWVudDU1NDEwOTM0Mg==,9599,simonw,2019-11-14T22:25:24Z,2019-11-14T22:25:24Z,OWNER,I needed this again today for `datasette-template-sql`.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",502355384,Testing utilities should be available to plugins, https://github.com/simonw/datasette/issues/580#issuecomment-554119604,https://api.github.com/repos/simonw/datasette/issues/580,554119604,MDEyOklzc3VlQ29tbWVudDU1NDExOTYwNA==,9599,simonw,2019-11-14T22:51:00Z,2019-11-14T22:51:00Z,OWNER,One thing that would be useful is a way of constructing a `Datasette()` instance (and accompanying `TestClient`) which is attached to an in-memory database that the test itself can manipulate. This would make it trivial to run tests against hypothetical database tables - those tables could be created using `sqlite-utils` directly against the in-memory database that's being manipulated by the system-under-test.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",502355384,Testing utilities should be available to plugins, https://github.com/simonw/datasette/issues/580#issuecomment-554446317,https://api.github.com/repos/simonw/datasette/issues/580,554446317,MDEyOklzc3VlQ29tbWVudDU1NDQ0NjMxNw==,9599,simonw,2019-11-15T17:11:02Z,2019-11-15T17:11:02Z,OWNER,Here's where I copied the testing utilities into `datasette-template-sql` - very slightly modified from the utilities in `datasette-atom`: https://github.com/simonw/datasette-template-sql/blob/0ef0c7304bb5e658723e229d3ee463b9a76058f9/tests/utils.py,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",502355384,Testing utilities should be available to plugins, https://github.com/simonw/datasette/issues/580#issuecomment-561481377,https://api.github.com/repos/simonw/datasette/issues/580,561481377,MDEyOklzc3VlQ29tbWVudDU2MTQ4MTM3Nw==,9599,simonw,2019-12-04T05:18:25Z,2019-12-04T05:18:25Z,OWNER,`datasette-atom` shipped with a copy of these classes too: https://github.com/simonw/datasette-atom/blob/c2e84207fccff0582d7152f3966dd2952fb0b74f/tests/utils.py,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",502355384,Testing utilities should be available to plugins, https://github.com/simonw/datasette/issues/580#issuecomment-592395768,https://api.github.com/repos/simonw/datasette/issues/580,592395768,MDEyOklzc3VlQ29tbWVudDU5MjM5NTc2OA==,9599,simonw,2020-02-28T07:58:46Z,2020-02-28T07:58:46Z,OWNER,"I don't think this is needed any more - I've found a really nice pattern for testing plugins using `httpx` instead, e.g. https://github.com/simonw/datasette-mask-columns/blob/f6f08ce21bdfc2731a02c42e1c9e25b4df769292/tests/test_mask_columns.py","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",502355384,Testing utilities should be available to plugins,