Skip to content

Commit

Permalink
Update test_core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDrang committed Dec 6, 2023
1 parent b3171fa commit 086e261
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from tests.conftest import BaseTest
from python_rucaptcha.core.base import BaseCaptcha
from python_rucaptcha.core.enums import MyEnum, GeetestEnm
from python_rucaptcha.core.config import APP_KEY, RETRIES, ASYNC_RETRIES, attempts_generator
from python_rucaptcha.core.serializer import PostRequestSer
from python_rucaptcha.core.config import RETRIES, ASYNC_RETRIES, attempts_generator


class TestMain(BaseTest):
Expand Down Expand Up @@ -126,14 +125,3 @@ def test_attempts_generator(self):
for attempt in attempts:
assert isinstance(attempt, int)
assert attempt == 4


class TestSer(BaseTest):
def test_soft_id(self):
instance = PostRequestSer(key=self.get_random_string(length=5), method=self.get_random_string(length=5))
assert instance.soft_id == APP_KEY

def test_soft_id_change(self):
with pytest.raises(ValueError):
instance = PostRequestSer(key=self.get_random_string(length=5), method=self.get_random_string(length=5))
instance.soft_id = self.get_random_string(length=5)

0 comments on commit 086e261

Please sign in to comment.