| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_stats_get_active_users_count() -> None: |
| 5 | """Test getActiveUsersCount endpoint with WireMock""" |
| 6 | test_id = "stats.get_active_users_count.0" |
| 7 | client = get_client(test_id) |
| 8 | client.stats.get_active_users_count() |
| 9 | verify_request_count(test_id, "GET", "/stats/active-users", None, 1) |
| 10 | |
| 11 | |
| 12 | def test_stats_get_daily() -> None: |
| 13 | """Test getDaily endpoint with WireMock""" |
| 14 | test_id = "stats.get_daily.0" |
| 15 | client = get_client(test_id) |
| 16 | client.stats.get_daily( |
| 17 | from_="from", |
| 18 | to="to", |
| 19 | ) |
| 20 | verify_request_count(test_id, "GET", "/stats/daily", {"from": "from", "to": "to"}, 1) |