From beb62209870cd3f5d49a72908951f1d59da9c2ff Mon Sep 17 00:00:00 2001 From: mraniki <8766259+mraniki@users.noreply.github.com> Date: Fri, 5 Jul 2024 16:44:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Unit=20Test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_exception.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/test_exception.py diff --git a/tests/test_exception.py b/tests/test_exception.py new file mode 100644 index 0000000..426ff6f --- /dev/null +++ b/tests/test_exception.py @@ -0,0 +1,26 @@ +""" +FindMyOrder Exception Testing +""" + +import pytest + +from findmyorder import FindMyOrder +from findmyorder.config import settings + + +@pytest.fixture(scope="session", autouse=True) +def set_test_settings(): + settings.configure(FORCE_ENV_FOR_DYNACONF="exception") + + +@pytest.fixture(name="fmo") +def fmo(): + """return fmo""" + return FindMyOrder() + + +@pytest.mark.asyncio +async def test_info(fmo): + """Search Testing""" + for client in fmo.clients: + assert client is None