Skip to content

Commit 22f8fba

Browse files
test: add test case for currentness api endpoint with ohsomedb flag
1 parent 64d848d commit 22f8fba

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/integrationtests/api/test_indicators.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Validate the response from requests to the `/indicators` endpoint of the API.
44
"""
55

6+
import asyncpg_recorder
67
import pytest
78
from approvaltests.approvals import verify
89
from schema import Optional, Or, Schema
@@ -122,14 +123,14 @@ def test_indicators(
122123
assert schema.is_valid(response.json())
123124

124125

125-
@oqapi_vcr.use_cassette
126-
def test_indicators_currentness(
126+
@pytest.mark.asyncio
127+
@asyncpg_recorder.use_cassette
128+
async def test_indicators_currentness_ohsomedb(
127129
client,
128130
bpolys,
129131
headers,
130132
schema,
131133
):
132-
"""Minimal viable request for a single bpoly."""
133134
endpoint = ENDPOINT + "currentness"
134135
parameters = {"bpolys": bpolys, "topic": "building-count", "ohsomedb": True}
135136
response = client.post(endpoint, json=parameters, headers=headers)

0 commit comments

Comments
 (0)