Merge pull request #37165 from openedx/feanil/remove_unnecessary_pin

feanil/remove unnecessary pin
This commit is contained in:
Feanil Patel
2025-08-13 08:57:57 -04:00
committed by GitHub
12 changed files with 11 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ class IntegritySignatureSerializer(serializers.ModelSerializer):
created_at = serializers.DateTimeField(source='created')
class Meta:
model = IntegritySignature()
model = IntegritySignature
fields = ('username', 'course_id', 'created_at')

View File

@@ -233,7 +233,7 @@ class TestUserPreferenceMiddleware(CacheIsolationTestCase):
# Preference is the same as the cookie, shouldn't write to the database
with self.assertNumQueries(3):
with self.assertNumQueries(2):
self.middleware.process_request(self.request)
assert get_user_preference(self.user, LANGUAGE_KEY) == 'es'

View File

@@ -443,7 +443,7 @@ class NotificationReadAPIViewTestCase(APITestCase):
response = self.client.patch(self.url, data)
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data["detail"], 'Not found.')
self.assertEqual(response.data["detail"].code, 'not_found')
def test_mark_notification_read_with_app_name_and_notification_id(self):
# Create a PATCH request to mark notification as read for existing app e.g 'discussion' and notification_id: 2