upload: Explicitly return a bool and the Attachment object.

This commit is contained in:
Alex Vandiver
2024-09-04 18:04:03 +00:00
committed by Tim Abbott
parent 0b0a7fa251
commit 933e3cb375
5 changed files with 17 additions and 17 deletions

View File

@@ -875,7 +875,7 @@ class FileUploadTest(UploadSerializeMixin, ZulipTestCase):
self.assertEqual(response.getvalue(), b"zulip!")
with self.assert_database_query_count(6):
self.assertTrue(validate_attachment_request(user, fp_path_id))
self.assertTrue(validate_attachment_request(user, fp_path_id)[0])
self.logout()