Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
use decorator for waffle override flag
Browse files Browse the repository at this point in the history
  • Loading branch information
how015 committed Apr 9, 2020
1 parent 4f14967 commit 5002293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registrar/apps/api/v1/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1759,6 +1759,7 @@ def test_successful_update_course_staff_with_program_group_waffle(self, use_exte
@mock_oauth_login
@responses.activate
@ddt.data(False, True)
@override_flag('enable_course_role_management', active=False)
def test_failed_program_course_enrollment_write_with_course_staff(self, use_external_course_key):
course_id = self.external_course_key if use_external_course_key else self.course_id

Expand All @@ -1774,7 +1775,6 @@ def test_failed_program_course_enrollment_write_with_course_staff(self, use_exte
course_id=course_id,
status_code=403,
):
with override_flag('enable_course_role_management', active=False):
response = self.request(
self.method, self.get_url(course_id=course_id), self.stem_admin, req_data
)
Expand Down

0 comments on commit 5002293

Please sign in to comment.