mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-22 06:17:57 +00:00
✅ Update skip reason in client fixture
This commit is contained in:
parent
5f5ce47a8e
commit
39082b4bcd
@ -14,7 +14,7 @@ if TYPE_CHECKING:
|
|||||||
@pytest_asyncio.fixture
|
@pytest_asyncio.fixture
|
||||||
async def genshin_client(genshin_player_id: int, account_id: int, region: "Region", cookies: "Cookies"):
|
async def genshin_client(genshin_player_id: int, account_id: int, region: "Region", cookies: "Cookies"):
|
||||||
if genshin_player_id is None:
|
if genshin_player_id is None:
|
||||||
pytest.skip("Test case test_genshin skipped: No starrail player id set.")
|
pytest.skip("Test case test_genshin skipped: No genshin player id set.")
|
||||||
async with GenshinClient(
|
async with GenshinClient(
|
||||||
player_id=genshin_player_id,
|
player_id=genshin_player_id,
|
||||||
cookies=cookies,
|
cookies=cookies,
|
||||||
|
@ -14,7 +14,7 @@ if TYPE_CHECKING:
|
|||||||
@pytest_asyncio.fixture
|
@pytest_asyncio.fixture
|
||||||
async def genshin_client(genshin_player_id: int, account_id: int, region: "Region", cookies: "Cookies"):
|
async def genshin_client(genshin_player_id: int, account_id: int, region: "Region", cookies: "Cookies"):
|
||||||
if genshin_player_id is None:
|
if genshin_player_id is None:
|
||||||
pytest.skip("Test case test_genshin_battle_chronicle_client skipped: No starrail player id set.")
|
pytest.skip("Test case test_genshin_battle_chronicle_client skipped: No genshin player id set.")
|
||||||
async with GenshinBattleChronicleClient(
|
async with GenshinBattleChronicleClient(
|
||||||
player_id=genshin_player_id,
|
player_id=genshin_player_id,
|
||||||
cookies=cookies,
|
cookies=cookies,
|
||||||
|
@ -14,7 +14,7 @@ if TYPE_CHECKING:
|
|||||||
@pytest_asyncio.fixture
|
@pytest_asyncio.fixture
|
||||||
async def calculator_client(genshin_player_id: int, account_id: int, region: "Region", cookies: "Cookies"):
|
async def calculator_client(genshin_player_id: int, account_id: int, region: "Region", cookies: "Cookies"):
|
||||||
if genshin_player_id is None:
|
if genshin_player_id is None:
|
||||||
pytest.skip("Test case test_starrail_battle_chronicle_client skipped: No starrail player id set.")
|
pytest.skip("Test case test_starrail_battle_chronicle_client skipped: No genshin player id set.")
|
||||||
async with CalculatorClient(
|
async with CalculatorClient(
|
||||||
player_id=genshin_player_id,
|
player_id=genshin_player_id,
|
||||||
cookies=cookies,
|
cookies=cookies,
|
||||||
|
Loading…
Reference in New Issue
Block a user