add data fixtures with real info from webdatabase.

This commit is contained in:
yanxd 2014-02-18 10:58:34 +08:00
parent 3ce5988292
commit b06d5c13a8
3 changed files with 178 additions and 0 deletions

90
test/fixtures/courses.yml vendored Normal file
View File

@ -0,0 +1,90 @@
---
courses_006:
id: 6
tea_id: 193
name:
state: 0
code:
time: 2013
extra: course2013-09-30_08-11-15
created_at: 2013-09-30 08:11:15.000000000 +08:00
updated_at: 2013-10-11 12:34:29.000000000 +08:00
location:
term: 秋季学期
string:
password: software
setup_time:
endup_time:
class_period:
courses_004:
id: 4
tea_id: 193
name:
state: 0
code:
time: 2013
extra: course2013-09-27_11-16-11
created_at: 2013-09-27 11:16:11.000000000 +08:00
updated_at: 2013-12-21 10:55:20.000000000 +08:00
location:
term: 秋季学期
string:
password: '123456'
setup_time: ''
endup_time: ''
class_period: ''
courses_012:
id: 12
tea_id: 193
name:
state:
code:
time: 2013
extra: course2013-10-08_20-52-10
created_at: 2013-10-08 20:52:10.000000000 +08:00
updated_at: 2013-10-08 20:52:10.000000000 +08:00
location:
term: 秋季学期
string:
password: software
setup_time:
endup_time:
class_period:
courses_020:
id: 20
tea_id: 193
name:
state:
code:
time: 2013
extra: course2013-10-21_20-47-58
created_at: 2013-10-21 20:47:58.000000000 +08:00
updated_at: 2014-01-08 09:48:56.000000000 +08:00
location:
term: 秋季学期
string:
password: multi-agent
setup_time: ''
endup_time: ''
class_period: ''

View File

@ -60,3 +60,27 @@ members_010:
project_id: 2
user_id: 8
mail_notification: false
members_011:
id: 115
user_id: 193
project_id: 39
created_on: 2013-09-30 08:11:15.000000000 +08:00
mail_notification: false
members_012:
id: 124
user_id: 193
project_id: 36
created_on: 2013-09-30 22:37:31.000000000 +08:00
mail_notification: false
members_013:
id: 140
user_id: 193
project_id: 46
created_on: 2013-10-08 20:52:10.000000000 +08:00
mail_notification: false
members_014:
id: 242
user_id: 193
project_id: 74
created_on: 2013-10-21 20:47:59.000000000 +08:00
mail_notification: false

View File

@ -71,3 +71,67 @@ projects_006:
parent_id: 5
lft: 3
rgt: 4
projects_007:
id: 39
name: "信息系统前沿技术"
description: "针对研究生的800级课程"
homepage: ''
is_public: true
parent_id:
created_on: 2013-09-30 08:11:15.000000000 +08:00
updated_on: 2013-09-30 08:11:15.000000000 +08:00
identifier: "course2013-09-30_08-11-15"
status: 1
lft: 81
rgt: 82
inherit_members: false
project_type: 1
hidden_repo: false
projects_008:
id: 36
name: "软件工程"
description: "针对软件工程专业的高年级本科生和硕士生"
homepage: ''
is_public: true
parent_id:
created_on: 2013-09-27 11:16:11.000000000 +08:00
updated_on: 2013-09-27 11:16:11.000000000 +08:00
identifier: "course2013-09-27_11-16-11"
status: 1
lft: 205
rgt: 206
inherit_members: false
project_type: 1
hidden_repo: false
projects_009:
id: 46
name: "计算机逻辑学"
description: "研究生课程"
homepage: ''
is_public: true
parent_id:
created_on: 2013-10-08 20:52:10.000000000 +08:00
updated_on: 2013-10-09 20:29:21.000000000 +08:00
identifier: "course2013-10-08_20-52-10"
status: 1
lft: 201
rgt: 202
inherit_members: false
project_type: 1
hidden_repo: false
projects_010:
id: 74
name: "毛新军老师的研究课题组"
description: ''
homepage: ''
is_public: true
parent_id:
created_on: 2013-10-21 20:47:58.000000000 +08:00
updated_on: 2014-01-08 09:48:55.000000000 +08:00
identifier: "course2013-10-21_20-47-58"
status: 1
lft: 151
rgt: 152
inherit_members: false
project_type: 1
hidden_repo: false