|
- import sys, os
-
- real_path = os.path.split(os.path.realpath(__file__))[0]
- sys.path.append('{}{}..'.format(real_path, os.sep))
-
- from config.common_config import *
- from config.performance_config import *
- from biz import home_page, performance_biz
-
- if __name__ == '__main__':
- # 创建账号
- home_page.login_educoder(username=admin_username, password=admin_password, headers=user_header_1)
- teacher_accounts, student_accounts = performance_biz.init_account_for_perf(headers=user_header_1)
- # 准备数据
- home_page.login_educoder(username=teacher_accounts[0], password=performance_biz.default_password, headers=user_header_2)
- performance_biz.init_exercise_for_perf(headers=user_header_2, stu_id_list=student_accounts)
|