Skip to content

Commit

Permalink
Merge pull request #4316 from mitodl/zagaran/remove_auth_on_course_en…
Browse files Browse the repository at this point in the history
…dpoint

Remove authentication from courseruns endpoint, and update test
  • Loading branch information
sesterki authored Apr 30, 2019
2 parents e890c10 + 5886539 commit a3de438
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions courses/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,5 @@ def create(self, request, *args, **kwargs): # pylint: disable=unused-argument

class CourseRunViewSet(viewsets.ReadOnlyModelViewSet):
"""API for the CourseRun model"""
authentication_classes = (
SessionAuthentication,
TokenAuthentication,
)
permission_classes = (
IsAuthenticated,
)
serializer_class = CourseRunSerializer
queryset = CourseRun.objects.all()
4 changes: 0 additions & 4 deletions courses/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ def setUpTestData(cls):
super().setUpTestData()
cls.user = UserFactory.create()

def setUp(self):
super().setUp()
self.client.force_login(self.user)

def test_lists_course_runs(self):
"""Course Runs should show up"""
course_run = CourseRunFactory.create()
Expand Down

0 comments on commit a3de438

Please sign in to comment.