Skip to content

Commit

Permalink
Remove authentication from courseruns endpoint, and update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sesterki committed Apr 29, 2019
1 parent 307ad52 commit 5886539
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 5886539

Please sign in to comment.