From 65601b6fcca6b0ca8cbad3d687000285697b517e Mon Sep 17 00:00:00 2001 From: Ben Puls <61308126+byBenPuls@users.noreply.github.com> Date: Wed, 11 Dec 2024 01:39:02 +0500 Subject: [PATCH] tests: remove common class --- tests/test_class.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 tests/test_class.py diff --git a/tests/test_class.py b/tests/test_class.py deleted file mode 100644 index 4380dc3..0000000 --- a/tests/test_class.py +++ /dev/null @@ -1,22 +0,0 @@ -import datetime - -import pytest - -from moy_nalog.exceptions import NalogMethodError -from moy_nalog.moy_nalog import MoyNalog - -pytest_plugins = ("pytest_asyncio",) - - -class TestClass: - nalog = MoyNalog("hello", "world") - - @pytest.mark.asyncio - async def test_auth_exception(self): - try: - await self.nalog.add_income("name", 123, datetime.datetime.now()) - except Exception as ex: - # test exception - assert isinstance(ex, NalogMethodError) - # test message text from lknpd.nalog.ru API - assert str(ex).lower() == "указанный вами инн некорректен"