Skip to content

Use recent click (fixes DEV-149)#62

Merged
aptiko merged 1 commit intoopenmeteo:masterfrom
aptiko:dev-149--click
Dec 8, 2025
Merged

Use recent click (fixes DEV-149)#62
aptiko merged 1 commit intoopenmeteo:masterfrom
aptiko:dev-149--click

Conversation

@aptiko
Copy link
Copy Markdown
Member

@aptiko aptiko commented Dec 8, 2025

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 24 to 26
def setUp(self) -> None:
runner = CliRunner(mix_stderr=False)
runner = CliRunner()
self.result: Result = runner.invoke(cli.main, ["nonexistent.conf"])
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep stderr split for CLI error assertions

With Click ≥8 the default CliRunner() uses mix_stderr=True, so stderr is merged into stdout. The new runner in NonExistentConfigFileTestCase means self.result.stderr (still asserted below) now raises ValueError: stderr not separately captured, causing these tests—and the similar evaporation/hspatial CLI tests—to error before checking the message. Set mix_stderr=False again or adjust the assertions to read from the combined output.

Useful? React with 👍 / 👎.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.85%. Comparing base (f7e9488) to head (8e72a85).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #62   +/-   ##
=======================================
  Coverage   95.85%   95.85%           
=======================================
  Files          19       19           
  Lines        2266     2266           
=======================================
  Hits         2172     2172           
  Misses         94       94           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aptiko aptiko merged commit 8e72a85 into openmeteo:master Dec 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant