Discard unit test attempt

This commit is contained in:
davelopez
2021-03-10 18:35:58 +01:00
parent 1315758c09
commit e3cd70f352
-32
View File
@@ -1,32 +0,0 @@
import json
from datetime import datetime
import pytest
from fastapi import FastAPI
from httpx import AsyncClient
from galaxy.webapps.galaxy.api.metrics import router
app = FastAPI()
app.include_router(router)
@pytest.mark.skip("WIP dependency resolve issue")
@pytest.mark.asyncio
async def test_request_create_metrics():
payload = {
"metrics": [
{
"namespace": "api-test",
"time": f"{datetime.utcnow().isoformat()}Z",
"level": 1,
"args": json.dumps({
"arg01": "test"
}),
}
]
}
async with AsyncClient(app=app, base_url="http://test") as client:
response = await client.post("/api/metrics", json=payload)
assert response.status_code == 200