Ensure uploaded filename is correct
This commit is contained in:
parent
f497adcabd
commit
7e889ee3b0
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ class TestPhotoUpload(TestPhotos):
|
|||
files = mock_post.call_args[1]["files"]
|
||||
self.assertEqual(endpoint, ("/photo/upload.json",))
|
||||
self.assertEqual(title, "Test")
|
||||
self.assertIn("photo", files)
|
||||
self.assertEqual(files["photo"].name, self.test_file)
|
||||
self.assertEqual(result.get_fields(), self.test_photos_dict[0])
|
||||
|
||||
class TestPhotoUploadEncoded(TestPhotos):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue