From 0553f79576609ba31d5ad5681550cac2bf772bb7 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 20 Mar 2023 04:07:28 +0300 Subject: [PATCH] Update test_core.py --- tests/test_core.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/test_core.py b/tests/test_core.py index 91de227..1b8fd07 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -3,7 +3,7 @@ from urllib3.util.retry import Retry from tests.conftest import BaseTest from python3_anticaptcha.core.base import BaseCaptcha -from python3_anticaptcha.core.enum import CaptchaTypeEnm +from python3_anticaptcha.core.enum import MyEnum, CaptchaTypeEnm from python3_anticaptcha.core.config import RETRIES, ASYNC_RETRIES, BASE_REQUEST_URL, attempts_generator @@ -60,3 +60,14 @@ class TestConfig(BaseTest): for attempt in attempts: assert isinstance(attempt, int) assert attempt == 4 + + +class TestEnum(BaseTest): + def test_enum_list(self): + assert isinstance(MyEnum.list(), list) + + def test_enum_list_values(self): + assert isinstance(MyEnum.list_values(), list) + + def test_enum_list_names(self): + assert isinstance(MyEnum.list_names(), list)