#1 添加 'data_init.py'

Merged
ZQ1 merged 1 commits from zq1-branch-1 into master 11 months ago
  1. +16
    -0
      data_init.py

+ 16
- 0
data_init.py View File

@@ -0,0 +1,16 @@
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)

Loading…
Cancel
Save