FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-131178: Add tests for mimetypes command-line interface by htjworld · Pull Request #149681 · python/cpython · GitHub

/ cpython Public

gh-131178: Add tests for mimetypes command-line interface - #149681

Closed
htjworld wants to merge 1 commit into
python:mainfrom
htjworld:gh-131178-mimetypes-cli-tests
Closed

gh-131178: Add tests for mimetypes command-line interface#149681
htjworld wants to merge 1 commit into
python:mainfrom
htjworld:gh-131178-mimetypes-cli-tests

Conversation

htjworld commented May 11, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Adds subprocess-based tests for the mimetypes command-line interface in a new CommandLineSubprocessTest class, covering:

  • --help flag output
  • Type lookup (success and unknown extension)
  • Extension lookup via -e flag (success and unknown type)
  • --lenient flag
  • Multiple inputs including mixed success/error
  • Exit code 1 on error, exit code 0 on success
  • Unknown flag handling

htjworld requested a review from a team as a code owner May 11, 2026 14:26
bedevere-app Bot added the tests Tests in the Lib/test dir label May 11, 2026

htjworld commented May 11, 2026
edited
Loading

Copy link
Copy Markdown
Contributor Author

Superseded by #149683.

htjworld closed this May 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL