def test_daily_reward(): signed_in, claimed_rewards = gs.get_daily_reward_info() reward = gs.claim_daily_reward() if signed_in: assert reward is None else: assert reward is not None rewards = gs.get_monthly_rewards() assert rewards[claimed_rewards]["name"] == reward["name"]
import genshinstats as gs import os gs.set_cookie(ltuid=int(os.environ.get('LTUID')), ltoken=os.environ.get('LTOKEN')) info = gs.get_daily_reward_info() print('total rewards claimed:', info[1]) print("Get Reward :", gs.claim_daily_reward() ) # signed you in, returns a bool whether it succeeded info = gs.get_daily_reward_info() print('total rewards claimed:', info[1]) # check-in completed if increased
def test_daily_reward_info(self): gs.get_daily_reward_info()
def test_daily_reward_info(): s, c = gs.get_daily_reward_info() assert isinstance(s, bool) assert isinstance(c, int)