Fixed Embargo Bug in Enrollment API
This issue was not found sooner because the test helper used only tested for GeoIP embargoes, and neglected the user profile. An additional test has been added to test for embargoes against the country assigned to the user's profile. Additionally, variable names have been cleaned up--user replaced with username--to avoid confusion in the future.
Showing
- common/djangoapps/enrollment/tests/test_views.py 168 additions, 96 deletionscommon/djangoapps/enrollment/tests/test_views.py
- common/djangoapps/enrollment/urls.py 3 additions, 2 deletionscommon/djangoapps/enrollment/urls.py
- common/djangoapps/enrollment/views.py 42 additions, 30 deletionscommon/djangoapps/enrollment/views.py
Loading
Please register or sign in to comment