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

Function test_api_get_plugins

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

Source from the content-addressed store, hash-verified

44
45@pytest.mark.asyncio
46async def test_api_get_plugins(client):
47 test_plugin = {
48 "name": "test_plugin",
49 "url": "http://test_plugin.com",
50 }
51 response = client.post("/api/plugins", json=test_plugin)
52 assert response.status_code == 201
53 assert response.json() == test_plugin
54 response = client.get("/api/plugins")
55 assert response.status_code == 200
56 assert response.json() == [test_plugin]
57
58
59@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected