sync client working

This commit is contained in:
Andrew Herrington
2021-12-10 23:35:39 -06:00
parent 37bfd532be
commit ade2f2ebd6
6 changed files with 467 additions and 4 deletions

View File

@@ -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 [