home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1722258980

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/2057#issuecomment-1722258980 https://api.github.com/repos/simonw/datasette/issues/2057 1722258980 IC_kwDOBm6k_c5mp5Yk 9599 2023-09-16T15:56:45Z 2023-09-16T15:56:45Z OWNER

Weird, I still can't get the warning to show even with this: ```python @pytest.mark.asyncio async def test_plugin_is_installed(): datasette = Datasette(memory=True)

class DummyPlugin:
    __name__ = "DummyPlugin"

    @hookimpl
    def actors_from_ids(self, datasette, actor_ids):
        return {}

try:
    pm.register(DummyPlugin(), name="DummyPlugin")
    response = await datasette.client.get("/-/plugins.json")
    assert response.status_code == 200
    installed_plugins = {p["name"] for p in response.json()}
    assert "DummyPlugin" in installed_plugins

finally:
    pm.unregister(name="ReturnNothingPlugin")

```

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