Skip to content

Add tests for download CLI to improve coverage#599

Open
mani6409 wants to merge 2 commits into
brainglobe:mainfrom
mani6409:add-download-cli-tests
Open

Add tests for download CLI to improve coverage#599
mani6409 wants to merge 2 commits into
brainglobe:mainfrom
mani6409:add-download-cli-tests

Conversation

@mani6409
Copy link
Copy Markdown

Description

What is this PR

Bug fix

Addition of a new feature

Other

Addition of unit tests for the download CLI.

Why is this PR needed?

The download CLI functionality previously had limited test coverage. Adding tests ensures that the command-line interface for downloading models behaves as expected and helps prevent regressions in future changes.

What does this PR do?

Adds unit tests for the download CLI module located in cellfinder/core/download/cli.py.

Verifies correct argument parsing and configuration behaviour.

Improves overall test coverage for the download functionality.

Ensures the CLI continues to behave correctly when parameters such as --install-path, --model, and --no-amend-config are used.

References

No related issue. This PR focuses on improving test coverage for the download CLI.

How has this PR been tested?

The new tests were executed locally using pytest.

The full project test suite was run to ensure no existing functionality was affected.

All tests passed successfully.

Is this a breaking change?

No. This PR only introduces additional tests and does not modify existing functionality.

Does this PR require an update to the documentation?

No documentation updates are required, as this change only adds test coverage.

Checklist:

The code has been tested locally

Tests have been added to cover new functionality

The documentation has been updated to reflect any changes (not required)

The code has been formatted with pre-commit

@mani6409
Copy link
Copy Markdown
Author

please look into it.

@adamltyson
Copy link
Copy Markdown
Member

Hi @mani6409, thanks for your contribution, but we have a lot of PRs to review. It may take us some time to get to this.

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.

2 participants