diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 1da7c18..305a55f 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -20,6 +20,12 @@ jobs: - branch: opencraft-release/nutmeg.2 remote: open-craft release: nutmeg + - branch: opencraft-release/palm.1 + remote: open-craft + release: palm + - branch: open-release/quince.master + remote: openedx + release: quince - branch: master remote: openedx release: master diff --git a/section_to_course/api/tests/test_views.py b/section_to_course/api/tests/test_views.py index 873531d..0b07d51 100644 --- a/section_to_course/api/tests/test_views.py +++ b/section_to_course/api/tests/test_views.py @@ -3,7 +3,7 @@ """ # pylint: disable=no-self-use -from common.djangoapps.student.tests.factories import UserFactory, TEST_PASSWORD +from common.djangoapps.student.tests.factories import TEST_PASSWORD, UserFactory from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase @@ -47,7 +47,7 @@ def test_rejects_unauthenticated(self): response = self.client.get( reverse('section_to_course:section_autocomplete', kwargs={'course_id': 'course-v1:edX+DemoX+Demo_Course'}) ) - assert response.status_code == status.HTTP_403_FORBIDDEN + assert response.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN) def test_rejects_unauthorized(self): """ diff --git a/section_to_course/tests/test_admin.py b/section_to_course/tests/test_admin.py index ed8fd9a..79a4c5c 100644 --- a/section_to_course/tests/test_admin.py +++ b/section_to_course/tests/test_admin.py @@ -1,7 +1,7 @@ """ Tests for the admin views of the section_to_course app. """ -from common.djangoapps.student.tests.factories import UserFactory, TEST_PASSWORD # pylint: disable=import-error +from common.djangoapps.student.tests.factories import TEST_PASSWORD, UserFactory # pylint: disable=import-error from django.test import TestCase from django.urls import reverse from django.utils import timezone