home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1249987643

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1809#issuecomment-1249987643 https://api.github.com/repos/simonw/datasette/issues/1809 1249987643 IC_kwDOBm6k_c5KgUw7 9599 2022-09-17T03:19:24Z 2022-09-17T03:19:24Z OWNER

In looking at the documentation on writing tests, there are a lot of examples like this: python def test_that_opens_the_debugger_or_errors(): ds = Datasette([db_path], pdb=True) response = await ds.client.get("/") I really don't like having to tell people to add await ds.invoke_startup() to every test that might look like this.

Since it's safe to call that function multiple times, I'm going to have ds.client.get() and friends call it for you too - so if you forget in a plugin test it won't matter.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1373595927  
Powered by Datasette · Queries took 7.346ms · About: github-to-sqlite