]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39299: Add more tests for mimetypes and its cli. (GH-17949)
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>
Mon, 13 Jan 2020 14:39:36 +0000 (20:09 +0530)
committerGitHub <noreply@github.com>
Mon, 13 Jan 2020 14:39:36 +0000 (20:09 +0530)
commitd8efc1495194228c3a4cd472200275d6491d8e2d
tree6d4e6c6def1f31932aea2d1281a557b1ec3cec50
parentc1ee6e5e9b87c9812c6745c1dd6c1788a984f9f9
bpo-39299: Add more tests for mimetypes and its cli. (GH-17949)

* Add tests for case insensitive check of types and extensions as fallback.
* Add tests for data url with no comma.
* Add tests for read_mime_types.
* Add tests for the mimetypes cli and refactor __main__ code to private function.
* Restore mimetypes.knownfiles value at the end of the test.
Lib/mimetypes.py
Lib/test/test_mimetypes.py