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

Function test_query_meta_success

api/tests/test_query_api.py:7–21  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

5
6@pytest.mark.asyncio
7async def test_query_meta_success(client):
8 query_condition = "min_frequency=8486280000&max_frequency=8486290000"
9
10 client.post("/api/datasources", json=test_datasource).json()
11 response = client.post(
12 f'/api/datasources/{test_datasource["account"]}/{test_datasource["container"]}/file_path/meta',
13 json=valid_metadata,
14 )
15 assert response.status_code == 201
16 response = client.get(
17 f"/api/datasources/query?{query_condition}"
18 )
19
20 assert response.status_code == 200
21 assert response.json() == valid_datasourcereference_array

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected