Skip to content

Commit 8f28887

Browse files
committedJul 4, 2017
Switch tests away from problematic png mime type
1 parent fcdeff5 commit 8f28887

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎test/test-mime.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def test_get_type_by_contents(self):
5555

5656
def test_get_type(self):
5757
# File that doesn't exist - get type by name
58-
imgpng = Mime.get_type(example_file("test.png"))
59-
self.check_mimetype(imgpng, 'image', 'png')
58+
imgpng = Mime.get_type(example_file("test.gif"))
59+
self.check_mimetype(imgpng, 'image', 'gif')
6060

6161
# File that does exist - get type by contents
6262
imgpng = Mime.get_type(example_file("png_file"))
@@ -80,7 +80,7 @@ def test_get_type(self):
8080

8181
def test_get_type2(self):
8282
# File that doesn't exist - use the name
83-
self.check_mimetype(Mime.get_type2(example_file('test.png')), 'image', 'png')
83+
self.check_mimetype(Mime.get_type2(example_file('test.gif')), 'image', 'gif')
8484

8585
# File that does exist - use the contents
8686
self.check_mimetype(Mime.get_type2(example_file('png_file')), 'image', 'png')

0 commit comments

Comments
 (0)