Browse Source

Initial commit

master
ZQ1 1 year ago
commit
d66e6c2266
5 changed files with 20 additions and 0 deletions
  1. +2
    -0
      README.md
  2. +16
    -0
      data_init.py
  3. +1
    -0
      hello.py
  4. +1
    -0
      test.txt
  5. BIN
      webconfig.tar

+ 2
- 0
README.md View File

@@ -0,0 +1,2 @@
# helloworld


+ 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)

+ 1
- 0
hello.py View File

@@ -0,0 +1 @@
print('Hello World!')

+ 1
- 0
test.txt View File

@@ -0,0 +1 @@
aaaaaaa

BIN
webconfig.tar View File


Loading…
Cancel
Save