This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
135 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
course_alias,course_name,section_name,teacher_email | ||
25601,Literature,1,[email protected] | ||
25602,English,2,[email protected] | ||
25603,Biology,3,[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import pandas as pd | ||
|
||
# Note on the data: | ||
# They are designed to test a few different scenarios: | ||
# 1. The "normal" flows. | ||
# 2. Course data that is missing alias data (Physics should be ignored). | ||
# 3. Alias data that is missing course data (d:111 should be ignored). | ||
# 4. Archived courses (Paleontology should be ignored). | ||
|
||
COURSE_DATA = pd.DataFrame( | ||
{ | ||
"id": ["1", "2", "3", "4", "5"], | ||
"name": ["Biology", "Math", "English", "Paleontology", "Physics"], | ||
"courseState": ["ACTIVE", "ACTIVE", "ACTIVE", "ARCHIVED", "ACTIVE"], | ||
"section": ["1", "1", "2", "3", "4"], | ||
} | ||
) | ||
ALIAS_DATA = pd.DataFrame( | ||
{ | ||
"courseId": ["1", "2", "3", "4", "0"], | ||
"alias": ["d:123", "d:234", "d:345", "d:456", "d:111"], | ||
} | ||
) | ||
SOURCE_DATA = pd.DataFrame( | ||
{ | ||
"course_alias": ["123", "234", "678", "789"], | ||
"course_name": ["Biology", "Math", "History", "Computer Science"], | ||
"section_name": ["1", "1", "2", "2"], | ||
"teacher_email": ["[email protected]", "[email protected]", "[email protected]", "[email protected]"], | ||
} | ||
) | ||
|
||
TO_CREATE_SOLUTION = pd.DataFrame( | ||
{ | ||
"course_alias": ["d:678", "d:789"], | ||
"course_name": ["History", "Computer Science"], | ||
"section_name": ["2", "2"], | ||
"teacher_email": ["[email protected]", "[email protected]"], | ||
} | ||
) | ||
TO_DELETE_SOLUTION = pd.DataFrame( | ||
{"courseId": ["3"], "name": ["English"], "section": ["2"]} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters