Skip to content

Refactor dataset and operator tests for granularity and clarity#235

Merged
Jammy2211 merged 1 commit intomainfrom
feature/refactor-dataset-operators-tests
Mar 10, 2026
Merged

Refactor dataset and operator tests for granularity and clarity#235
Jammy2211 merged 1 commit intomainfrom
feature/refactor-dataset-operators-tests

Conversation

@Jammy2211
Copy link
Owner

Summary

  • Split monolithic dataset (imaging, interferometer), mask/derive, convolver, and transformer test functions into focused single-assertion tests
  • Descriptive test names encode the condition and expected result
  • Added @pytest.mark.parametrize for convolver and transformer scenarios
  • Fixed a pre-existing pytest assert-tuple bug in test_convolver.py where assert (expr, value) was always True

Test plan

  • All 118 tests pass (python -m pytest test_autoarray/dataset/ test_autoarray/mask/derive/ test_autoarray/operators/ -q)
  • No numerical assertion values were changed

🤖 Generated with Claude Code

Split monolithic tests into focused single-assertion tests with
descriptive names encoding condition and expected result. Add
@pytest.mark.parametrize for convolver and transformer scenarios.
Also fix pytest assert-tuple bug in convolver test.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 9b81be7 into main Mar 10, 2026
8 checks passed
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