mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-25 15:42:16 +00:00
✅ Tests Ignore NeedChallenge
Error
This commit is contained in:
parent
fc2faa805f
commit
ee385fea98
@ -4,6 +4,7 @@ import pytest
|
|||||||
import pytest_asyncio
|
import pytest_asyncio
|
||||||
|
|
||||||
from simnet.client.components.chronicle.starrail import StarRailBattleChronicleClient
|
from simnet.client.components.chronicle.starrail import StarRailBattleChronicleClient
|
||||||
|
from simnet.errors import NeedChallenge
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from simnet.client.cookies import Cookies
|
from simnet.client.cookies import Cookies
|
||||||
@ -35,11 +36,13 @@ class TestStarrailBattleChronicleClient:
|
|||||||
assert character.id > 0
|
assert character.id > 0
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@pytest.mark.xfail(raises=NeedChallenge, reason="Challenge is needed, but not implemented yet.")
|
||||||
async def test_get_starrail_notes(starrail_client: "StarRailBattleChronicleClient"):
|
async def test_get_starrail_notes(starrail_client: "StarRailBattleChronicleClient"):
|
||||||
notes = await starrail_client.get_starrail_notes()
|
notes = await starrail_client.get_starrail_notes()
|
||||||
assert notes is not None
|
assert notes is not None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@pytest.mark.xfail(raises=NeedChallenge, reason="Challenge is needed, but not implemented yet.")
|
||||||
async def test_get_starrail_characters(starrail_client: "StarRailBattleChronicleClient"):
|
async def test_get_starrail_characters(starrail_client: "StarRailBattleChronicleClient"):
|
||||||
characters = await starrail_client.get_starrail_characters()
|
characters = await starrail_client.get_starrail_characters()
|
||||||
assert len(characters.avatar_list) > 0
|
assert len(characters.avatar_list) > 0
|
||||||
@ -47,6 +50,7 @@ class TestStarrailBattleChronicleClient:
|
|||||||
assert character.id > 0
|
assert character.id > 0
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@pytest.mark.xfail(raises=NeedChallenge, reason="Challenge is needed, but not implemented yet.")
|
||||||
async def test_get_starrail_challenge(starrail_client: "StarRailBattleChronicleClient"):
|
async def test_get_starrail_challenge(starrail_client: "StarRailBattleChronicleClient"):
|
||||||
challenge = await starrail_client.get_starrail_challenge()
|
challenge = await starrail_client.get_starrail_challenge()
|
||||||
assert challenge.season > 0
|
assert challenge.season > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user