def test_add_points_only_adds_points_to_correct_guild( command_user: User, target_user: User, target_user_in_other_guild: User): target_user = add_points(command_user, target_user, POINTS_COUNT) target_user_in_other_guild = User.get_by_id(target_user_in_other_guild.id) assert target_user.points != target_user_in_other_guild.points
def test_add_xp_only_adds_xp_to_correct_guild(user: User, user_in_other_guild: User): user = add_xp(user, XP_COUNT, cooldown=timedelta(0)) user_in_other_guild = User.get_by_id(user_in_other_guild.id) assert user.xp != user_in_other_guild.xp
def test_add_xp_adds_xp_to_correct_user(user: User): add_xp(user, XP_COUNT, cooldown=timedelta(0)) user = User.get_by_id(user.id) assert user.xp == XP_COUNT