(client)
| 58 | |
| 59 | @pytest.mark.asyncio |
| 60 | async 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 |