Skip to content

Conversation

@bearomorphism
Copy link
Collaborator

@bearomorphism bearomorphism commented Jan 14, 2026

Why

with pytest.raises block should contain only one statement which we expect it to throw exceptions.

Changes made

  • Removed unreachable code in tests
  • Fixed test_check_command_cli_overrides_config_message_length_limit. The last check_cmd assignment had no effect.
  • Extracted success_mock

@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.95%. Comparing base (52d84c1) to head (fcbfb0a).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1800   +/-   ##
=======================================
  Coverage   97.95%   97.95%           
=======================================
  Files          60       60           
  Lines        2646     2646           
=======================================
  Hits         2592     2592           
  Misses         54       54           

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

@bearomorphism bearomorphism force-pushed the test-pyraise-one-statement branch from 1907280 to 66a240f Compare January 14, 2026 06:50
@bearomorphism bearomorphism force-pushed the test-pyraise-one-statement branch from 66a240f to fcbfb0a Compare January 14, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants