Skip to content

Commit 68b7b25

Browse files
committed
Added Test Cases. Next I will modify uplodader_test.go to test each case
1 parent 9a74feb commit 68b7b25

File tree

19 files changed

+278
-25
lines changed

19 files changed

+278
-25
lines changed

uploader/test-data/uploader-tests/test_courses.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

uploader/test-data/uploader-tests/test_professors.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

uploader/test-data/uploader-tests/test_sections.json

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[
2+
{
3+
"_id": "67d07ee0c972c18731e23bee",
4+
"subject_prefix": "BA",
5+
"course_number": "1320",
6+
"title": "Business in a Global World",
7+
"description": "BA 1320 - Business in a Global World (3 semester credit hours) This course provides a primer on the impacts of globalization on business.",
8+
"enrollment_reqs": "BA 1320 Repeat Restriction",
9+
"school": "Naveen Jindal School of Management",
10+
"credit_hours": "3",
11+
"class_level": "Undergraduate",
12+
"activity_type": "Lecture",
13+
"grading": "Graded - Undergraduate",
14+
"internal_course_number": "015444",
15+
"prerequisites": null,
16+
"corequisites": null,
17+
"co_or_pre_requisites": null,
18+
"sections": ["67d07ee0c972c18731e23bef"],
19+
"lecture_contact_hours": "3",
20+
"laboratory_contact_hours": "0",
21+
"offering_frequency": "S",
22+
"catalog_year": "24",
23+
"attributes": null
24+
}
25+
]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
{
3+
"_id": "67d07ee0c972c18731e23bf0",
4+
"first_name": "Peter",
5+
"last_name": "Lewin",
6+
"titles": ["Primary Instructor"],
7+
"email": "[email protected]",
8+
"phone_number": "",
9+
"office": {"building": "", "room": "", "map_uri": ""},
10+
"profile_uri": "",
11+
"image_uri": "",
12+
"office_hours": null,
13+
"sections": ["67d07ee0c972c18731e23bef"]
14+
}
15+
]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[
2+
{
3+
"_id": "67d07ee0c972c18731e23bef",
4+
"section_number": "501",
5+
"course_reference": "67d07ee0c972c18731e23bee",
6+
"section_corequisites": null,
7+
"academic_session": {
8+
"name": "25S",
9+
"start_date": "2025-01-21T00:00:00-06:00",
10+
"end_date": "2025-05-16T00:00:00-05:00"
11+
},
12+
"professors": ["67d07ee0c972c18731e23bf0"],
13+
"teaching_assistants": [],
14+
"internal_class_number": "27195",
15+
"instruction_mode": "Face-to-Face",
16+
"meetings": [
17+
{
18+
"start_date": "2025-01-21T00:00:00-06:00",
19+
"end_date": "2025-05-09T00:00:00-05:00",
20+
"meeting_days": ["Tuesday", "Thursday"],
21+
"start_time": "5:30pm",
22+
"end_time": "6:45pm",
23+
"modality": "",
24+
"location": {"building": "JSOM", "room": "12.218", "map_uri": "https://locator.utdallas.edu/SOM_12.218"}
25+
}
26+
],
27+
"core_flags": ["080", "090"],
28+
"syllabus_uri": "https://dox.utdallas.edu/syl153033",
29+
"grade_distribution": [],
30+
"attributes": null
31+
}
32+
]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[
2+
{
3+
"_id": "67d07ee0c972c18731e23bf4",
4+
"subject_prefix": "AERO",
5+
"course_number": "3320",
6+
"title": "- Recitation",
7+
"description": "- ()",
8+
"enrollment_reqs": "",
9+
"school": "Undergraduate Studies",
10+
"credit_hours": "Non-Enroll",
11+
"class_level": "Undergraduate",
12+
"activity_type": "Laboratory - No Lab Fee",
13+
"grading": "Graded - Undergraduate",
14+
"internal_course_number": "000243",
15+
"prerequisites": null,
16+
"corequisites": null,
17+
"co_or_pre_requisites": null,
18+
"sections": ["67d07ee0c972c18731e23bf5"],
19+
"lecture_contact_hours": "",
20+
"laboratory_contact_hours": "",
21+
"offering_frequency": "",
22+
"catalog_year": "24",
23+
"attributes": null
24+
}
25+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[
2+
{
3+
"_id": "67d07ee0c972c18731e23be9",
4+
"subject_prefix": "ACCT",
5+
"course_number": "2301",
6+
"title": "Introductory Financial Accounting",
7+
"description": "ACCT 2301 - Introductory Financial Accounting (3 semester credit hours) An introduction to financial reporting...",
8+
"enrollment_reqs": "ACCT 2301 Repeat Restriction",
9+
"school": "Naveen Jindal School of Management",
10+
"credit_hours": "3",
11+
"class_level": "Undergraduate",
12+
"activity_type": "Lecture",
13+
"grading": "Graded - Undergraduate",
14+
"internal_course_number": "000061",
15+
"prerequisites": null,
16+
"corequisites": null,
17+
"co_or_pre_requisites": null,
18+
"sections": ["67d07ee0c972c18731e23bea", "67d07ee0c972c18731e23bed"],
19+
"lecture_contact_hours": "3",
20+
"laboratory_contact_hours": "0",
21+
"offering_frequency": "S",
22+
"catalog_year": "24",
23+
"attributes": null
24+
}
25+
]

0 commit comments

Comments
 (0)