-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved institution-processing functions from `add_institution_processo…
…r` to `util` Since these functions are now used in more than one location (`add_insti_proc` and `prepay_proc`), it makes sense for them to be relocated to `util` The test case checking institution-processing has changed slightly
- Loading branch information
Showing
2 changed files
with
4 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,7 +157,7 @@ def test_export_pi(self, mock_filter_cols): | |
self.assertNotIn("ProjectC", pi_df["Project - Allocation"].tolist()) | ||
|
||
|
||
class TestAddInstituteProcessor(TestCase): | ||
class TestAddInstitute(TestCase): | ||
def test_get_pi_institution(self): | ||
institute_map = { | ||
"harvard.edu": "Harvard University", | ||
|
@@ -186,12 +186,9 @@ def test_get_pi_institution(self): | |
"[email protected]": "Beth Israel Deaconess Medical Center", | ||
} | ||
|
||
add_institute_proc = test_utils.new_add_institution_processor() | ||
|
||
for pi_email, answer in answers.items(): | ||
self.assertEqual( | ||
add_institute_proc._get_institution_from_pi(institute_map, pi_email), | ||
answer, | ||
util.get_institution_from_pi(institute_map, pi_email), answer | ||
) | ||
|
||
|
||
|