# -*- coding:utf-8 -*-
# 作者：齐振鋆
# 日期：2022/9/27
import logging
import pytest

from page.GuKeYiTiHua.Public.loginPage import LoginPage
from unit.public.DataDic import DataDic

log = logging.getLogger(__name__)
dd = DataDic()


@pytest.fixture(scope="session", autouse=True)
def login():
    dd.set_value('project_name', '骨科一体化项目')
    login = LoginPage()
    login.login()
    yield
    dd.get_value('db').final()
    dd.get_value('driver').quit()
