"""
    登录用例
"""
import pytest
from PageObjects.login_page import LoginPage
from PageObjects.myClient_page import MyClientPage
from TestDatas import global_datas as gd


@pytest.mark.usefixtures("init")
class TestLogin:

    # 登录成功用例
    def test_login_success(self, init):
        # 1、步骤
        LoginPage(init).login(*gd.user)
        # 2、断言
        assert MyClientPage(init).is_username_exist()
