]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39299: Add more tests for mimetypes and its cli. (GH-17949)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Feb 2020 15:32:40 +0000 (07:32 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 15:32:40 +0000 (07:32 -0800)
commitd3f9fb2d28ceedb0a17a703338424ff284a578c8
tree96697d4803be5fcc93acd3783b63c025123eb191
parent40ef4fc07e64be93522bc705c3d8a954a62b9ded
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.
(cherry picked from commit d8efc1495194228c3a4cd472200275d6491d8e2d)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Lib/mimetypes.py
Lib/test/test_mimetypes.py