Skip to content

Conversation

@lucamelis
Copy link
Contributor

Summary:
This diff refactors test units for analysis_node and parallel_analysis_node to improve code quality and maintainability.

Changes

  • In test_parallel_analysis_node.py:
    • Removed redundant assertions and combined them into a single assertion for analysis_outputs_dict.
    • Added type hints for scalar float fields in analysis_outputs_dict.
  • In base_test_analysis_node.py:
    • Added a new method assertIsListOfFloats to assert that a value is a list containing only float or np.floating elements.
    • Imported Any, Dict, and List from the typing module.
  • In test_analysis_node.py:
    • Fixed a typo in the docstring of test_turn_cap_eps_on method.

Differential Revision: D92843962

Summary:
This diff refactors test units for `analysis_node` and `parallel_analysis_node` to improve code quality and maintainability.

### Changes

*   In `test_parallel_analysis_node.py`:
    *   Removed redundant assertions and combined them into a single assertion for `analysis_outputs_dict`.
    *   Added type hints for scalar float fields in `analysis_outputs_dict`.
*   In `base_test_analysis_node.py`:
    *   Added a new method `assertIsListOfFloats` to assert that a value is a list containing only float or np.floating elements.
    *   Imported `Any`, `Dict`, and `List` from the `typing` module.
*   In `test_analysis_node.py`:
    *   Fixed a typo in the docstring of `test_turn_cap_eps_on` method.

Differential Revision: D92843962
@meta-codesync
Copy link

meta-codesync bot commented Feb 10, 2026

@lucamelis has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92843962.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 10, 2026
@meta-codesync meta-codesync bot closed this in 33e2c78 Feb 10, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 10, 2026

This pull request has been merged in 33e2c78.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants