home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 792625812

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason performed_via_github_app reactions draft state_reason
792625812 MDU6SXNzdWU3OTI2MjU4MTI= 1198 Plugin testing documentation on using pytest-httpx 9599 closed 0     1 2021-01-23T18:46:16Z 2021-01-24T20:40:38Z 2021-01-24T20:38:43Z OWNER  

I keep on having to figure this out: if you use the https://pypi.org/project/pytest-httpx/ fixture to write tests against mocked external APIs, they will fail because that module will break Datasette's own datasette.client testing mechanism.

You can fix this using:

python @pytest.fixture def non_mocked_hosts(): return ["localhost"]

See https://github.com/simonw/datasette-indieauth/blob/1.2/tests/test_indieauth.py

I can add this tip to the https://docs.datasette.io/en/stable/testing_plugins.html page.

107914493 issue    
{
    "url": "https://api.github.com/repos/simonw/datasette/issues/1198/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 2.495ms · About: github-to-sqlite