def setUpClass(cls) -> None:
        cls.user = UserManager()

        um = UserManagerData()
        cls.username = um.user_case_data.get('username')
        cls.password = um.user_case_data.get('password')
        cls.new_username = um.user_case_data.get('new_username')
        cls.new_password = um.user_case_data.get('new_password')
 def setUpClass(cls) -> None:
     cls.user = UserManager()
示例#3
0
 def setUpClass(cls) -> None:
     cls.user = UserManager()
     cls.new_user = '******'
示例#4
0
import unittest
from HTMLTestRunner import HTMLTestRunner
from api.user_manager import UserManager
from setting import TEST_REPOST_PATH, LOGIN_INFO
h = UserManager()

if __name__ == '__main__':

    h.login(LOGIN_INFO.get('username'), LOGIN_INFO.get('password'))
    suite = unittest.TestLoader().discover('./cases', 'test*.py')

    with open(TEST_REPOST_PATH, 'wb') as f:

        renner = HTMLTestRunner(f, title='测试报告')
        renner.run(suite)
    def setUpClass(cls) -> None:

        cls.user = UserManager()

        cls.username = cls.password = '******'
        cls.new_username = cls.new_password = '******'
示例#6
0
    def setUpClass(cls) -> None:
        cls.user = UserManager()
        # cls.user.login('admin123','admin123')

        cls.username = cls.password = '******'
        cls.new_username = cls.new_password = '******'
    def setUpClass(cls) -> None:
        cls.user = UserManager()

        cls.username = cls.password = '******'
        cls.new_username = cls.new_password = '******'