Skip to content

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
Copy link
Copy Markdown
Contributor

@htjworld htjworld commented May 11, 2026

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 htjworld requested a review from a team as a code owner May 11, 2026 14:26
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label May 11, 2026
@htjworld
Copy link
Copy Markdown
Contributor Author

htjworld commented May 11, 2026

Superseded by #149683.

@htjworld htjworld closed this May 11, 2026
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