-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from uw-it-aca/feature/new-cohort-submit
Feature/new cohort submit
- Loading branch information
Showing
5 changed files
with
70 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
Contains UW AdSEL Azure DAO implementations. | ||
""" | ||
from restclients_core.dao import DAO | ||
from os.path import abspath, dirname | ||
import os | ||
|
||
|
||
class ADSEL_AZURE_DAO(DAO): | ||
def service_name(self): | ||
return 'adsel_azure' | ||
|
||
def service_mock_paths(self): | ||
path = [abspath(os.path.join(dirname(__file__), "resources"))] | ||
return path |
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,17 @@ | ||
{ | ||
"summaryPostStatus": "AzureSubmitSuccess", | ||
"items": [ | ||
{ | ||
"status": "string", | ||
"application": { | ||
"admissionSelectionId": 0, | ||
"applicationNbr": 0, | ||
"systemKey": 0 | ||
}, | ||
"cohortNbr": 0, | ||
"majorAbbr": "string", | ||
"message": "string" | ||
} | ||
], | ||
"message": "string" | ||
} |
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,13 @@ | ||
from unittest import TestCase | ||
from uw_adsel import AdSelAzure | ||
from uw_adsel.models import CohortAssignment | ||
|
||
|
||
class AdselTest(TestCase): | ||
adsel = AdSelAzure() | ||
|
||
def test_assign_cohort(self): | ||
cohort = CohortAssignment(cohort_number=1, campus=2) | ||
submit = self.adsel.assign_cohorts_manual(cohort) | ||
self.assertEqual(submit['response']['summaryPostStatus'], | ||
"AzureSubmitSuccess") |