forked from Wavyzz/py-healthchecks.io
sync client working
This commit is contained in:
@@ -4,7 +4,8 @@ from typing import Union
|
||||
|
||||
import pytest
|
||||
|
||||
from healthchecks_io.client import AsyncClient
|
||||
from healthchecks_io import AsyncClient
|
||||
from healthchecks_io import Client
|
||||
from healthchecks_io.schemas import checks
|
||||
|
||||
|
||||
@@ -87,6 +88,12 @@ def test_async_client():
|
||||
yield AsyncClient(api_key="test", api_url="https://localhost/api")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def test_client():
|
||||
"""A Client for testing, set to a nonsense url so we aren't pinging healtchecks."""
|
||||
yield Client(api_key="test", api_url="https://localhost/api")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def fake_check_pings_api_result():
|
||||
yield [
|
||||
|
||||
Reference in New Issue
Block a user