Skip to content

Add CLI tests#360

Closed
neuralsorcerer wants to merge 2 commits intofacebookresearch:mainfrom
neuralsorcerer:clitest
Closed

Add CLI tests#360
neuralsorcerer wants to merge 2 commits intofacebookresearch:mainfrom
neuralsorcerer:clitest

Conversation

@neuralsorcerer
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 9, 2026 02:37
@meta-cla meta-cla bot added the cla signed label Mar 9, 2026
@neuralsorcerer neuralsorcerer added this to the balance 0.17.0 milestone Mar 9, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds unit tests around balance’s CLI helper methods to improve coverage for key I/O and edge-case behavior, and updates documentation to reflect the new coverage.

Changes:

  • Added tests for BalanceCLI.process_batch() empty-sample behavior, load_and_check_input() CSV loading, and write_outputs() when diagnostics output is not configured.
  • Removed obsolete “TODO: add unit tests” comments from balance/cli.py.
  • Added a changelog entry describing the new CLI test coverage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
tests/test_cli.py Adds new CLI-focused unit tests for empty-batch handling and basic I/O helpers.
balance/cli.py Removes TODO comments now that unit tests exist.
CHANGELOG.md Documents the added CLI unit test coverage.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@neuralsorcerer neuralsorcerer requested a review from talgalili March 9, 2026 15:08
Copy link
Contributor

@talgalili talgalili left a comment

Choose a reason for hiding this comment

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

LGTM

@meta-codesync
Copy link

meta-codesync bot commented Mar 9, 2026

@talgalili has imported this pull request. If you are a Meta employee, you can view this in D95815944.

@meta-codesync
Copy link

meta-codesync bot commented Mar 9, 2026

@talgalili merged this pull request in 31f10c3.

@neuralsorcerer neuralsorcerer deleted the clitest branch March 10, 2026 01:56
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.

4 participants