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

@htjworldhtjworld commented May 11, 2026

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
htjworld requested a review from a team as a code ownerMay 11, 2026 14:26
@bedevere-appbedevere-appBot added the tests Tests in the Lib/test dir label May 11, 2026
@htjworld

htjworld commented May 11, 2026

Copy link
Copy Markdown
ContributorAuthor

Superseded by #149683.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviewtestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@htjworld