Skip to content

Commit

Permalink
Switch tests away from problematic png mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jul 4, 2017
1 parent fcdeff5 commit 8f28887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test-mime.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def test_get_type_by_contents(self):

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

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

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

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

0 comments on commit 8f28887

Please # to comment.