Skip to content

Commit

Permalink
fixup! ✨(backend) allow admin user to update Enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbpenrath committed Mar 21, 2024
1 parent 42fe98e commit 2167379
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/backend/joanie/tests/core/test_api_admin_enrollments.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,10 @@ def test_api_admin_enrollments_create(self):
self.assertEqual(response.status_code, HTTPStatus.METHOD_NOT_ALLOWED)

def test_api_admin_enrollments_update(self):
"""Update an enrollment be allowed but only is_active should be writable."""
"""
Update an enrollment should be allowed but only is_active should be writable.
"""

# Create an admin user
admin = factories.UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=admin.username, password="password")
Expand Down

0 comments on commit 2167379

Please sign in to comment.