Skip to content

Commit 4ef3063

Browse files
author
isatsam
committed
Add DDS to tests
1 parent c948476 commit 4ef3063

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/fixtures/sample.dds

3.66 MB
Binary file not shown.

tests/test_types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ def test_guess_avif(self):
5050
self.assertEqual(kind.mime, 'image/avif')
5151
self.assertEqual(kind.extension, 'avif')
5252

53+
def test_guess_dds(self):
54+
kind = filetype.guess(FIXTURES + '/sample.dds')
55+
self.assertTrue(kind is not None)
56+
self.assertEqual(kind.mime, 'image/dds')
57+
self.assertEqual(kind.extension, 'dds')
58+
5359
def test_guess_m4a(self):
5460
kind = filetype.guess(FIXTURES + '/sample.m4a')
5561
self.assertTrue(kind is not None)

0 commit comments

Comments
 (0)