MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / test_api_get_plugin

Function test_api_get_plugin

api/tests/test_plugins.py:60–70  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

58
59@pytest.mark.asyncio
60async def test_api_get_plugin(client):
61 test_plugin = {
62 "name": "test_plugin",
63 "url": "http://test_plugin.com",
64 }
65 response = client.post("/api/plugins", json=test_plugin)
66 assert response.status_code == 201
67 assert response.json() == test_plugin
68 response = client.get("/api/plugins/test_plugin")
69 assert response.status_code == 200
70 assert response.json() == test_plugin
71
72
73@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected