Add many regression tests for `main.py` by rolandwalker · Pull Request #1789 · dbcli/mycli · GitHub
Skip to content

Add many regression tests for main.py#1789

Merged
rolandwalker merged 1 commit intomainfrom
RW/add-main-py-regression-tests
Apr 3, 2026
Merged

Add many regression tests for main.py#1789
rolandwalker merged 1 commit intomainfrom
RW/add-main-py-regression-tests

Conversation

@rolandwalker
Copy link
Copy Markdown
Contributor

Description

These are of different quality than test_main.py. To underscore that, the new tests are placed in a different file, with an explanatory docstring.

The purpose of the file is to help with refactoring the large main.py. At the same time, the contracts in main.py tested here are liable to change.

This does achieve 100% coverage for main.py; 98% for the project as a whole.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

@rolandwalker rolandwalker self-assigned this Apr 3, 2026
@rolandwalker rolandwalker force-pushed the RW/add-main-py-regression-tests branch 2 times, most recently from 93517ce to 77941f2 Compare April 3, 2026 10:12
These are of different quality than test_main.py.  To underscore that,
the new tests are placed in a different file, with an explanatory
docstring.

The purpose of the file is to help with refactoring the large main.py.
At the same time, the contracts in main.py tested here are liable to
change.

This does achieve 100% coverage for main.py; 98% for the project as a
whole.
@rolandwalker rolandwalker force-pushed the RW/add-main-py-regression-tests branch from 77941f2 to 1f30d8e Compare April 3, 2026 10:16
@rolandwalker rolandwalker merged commit 87c8b7c into main Apr 3, 2026
13 of 14 checks passed
@rolandwalker rolandwalker deleted the RW/add-main-py-regression-tests branch April 3, 2026 10:22
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