From b06d5c13a8bd9a8966b47540e69109c3cdec7ed8 Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 18 Feb 2014 10:58:34 +0800 Subject: [PATCH] add data fixtures with real info from webdatabase. --- test/fixtures/courses.yml | 90 ++++++++++++++++++++++++++++++++++++++ test/fixtures/members.yml | 24 ++++++++++ test/fixtures/projects.yml | 64 +++++++++++++++++++++++++++ 3 files changed, 178 insertions(+) create mode 100644 test/fixtures/courses.yml diff --git a/test/fixtures/courses.yml b/test/fixtures/courses.yml new file mode 100644 index 00000000..c26d4ec4 --- /dev/null +++ b/test/fixtures/courses.yml @@ -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: '' + + + + + + + + + + + + + + + + + + + + + diff --git a/test/fixtures/members.yml b/test/fixtures/members.yml index 10d52f30..5c9f9d3d 100644 --- a/test/fixtures/members.yml +++ b/test/fixtures/members.yml @@ -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 diff --git a/test/fixtures/projects.yml b/test/fixtures/projects.yml index 0105f935..6c321dab 100644 --- a/test/fixtures/projects.yml +++ b/test/fixtures/projects.yml @@ -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