mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2026-04-25 00:05:36 +02:00
add some client work
This commit is contained in:
@@ -4,6 +4,7 @@ from typing import Union
|
||||
|
||||
import pytest
|
||||
|
||||
from healthchecks_io.client import AsyncClient
|
||||
from healthchecks_io.schemas import checks
|
||||
|
||||
|
||||
@@ -78,3 +79,10 @@ def fake_ro_check(fake_check: checks.Check):
|
||||
fake_check.update_url = None
|
||||
fake_check.pause_url = None
|
||||
yield fake_check
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def test_async_client():
|
||||
"""An AsyncClient for testing, set to a nonsense url so we aren't pinging healtchecks."""
|
||||
|
||||
yield AsyncClient(api_key="test", api_url="https://localhost/api")
|
||||
|
||||
Reference in New Issue
Block a user