Enhancement: filter by file type (#8946)

This commit is contained in:
shamoon authored and GitHub committed 2025-02-10 08:09:50 -08:00
1 parent 880f08599a
commit 63bb3644f6
11 files changed
+175 -52

No files matched your search

@@ -639,6 +639,13 @@ class TestDocumentApi(DirectoriesMixin, DocumentConsumeDelayMixin, APITestCase):
self.assertEqual(len(results), 1)
self.assertEqual(results[0]["id"], doc3.id)
response = self.client.get(
"/api/documents/?mime_type=pdf",
)
self.assertEqual(response.status_code, status.HTTP_200_OK)
results = response.data["results"]
self.assertEqual(len(results), 3)
def test_custom_field_select_filter(self):
"""
GIVEN: