Skip to content

Remove duplication between test_compute_weight_factors.py and test_metrics_factory.py#1181

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/remove-duplication-test-files
Draft

Remove duplication between test_compute_weight_factors.py and test_metrics_factory.py#1181
Copilot wants to merge 2 commits intomainfrom
copilot/remove-duplication-test-files

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

test_compute_weight_factors.py tested weight factor computations directly, duplicating coverage already in test_metrics_factory.py via the factory pattern.

  • Deleted test_compute_weight_factors.py — all 3 tests (test_compute_wgtfac_c, test_compute_wgtfacq_e_dsl, test_compute_wgtfacq_c_dsl) had factory equivalents
  • Added test_factory_wgtfacq_c to test_metrics_factory.py — the only computation that lacked a factory-level test
Removed (direct call) Kept (factory)
test_compute_wgtfac_c test_compute_wgtfac_c
test_compute_wgtfacq_e_dsl test_factory_wgtfacq_e
test_compute_wgtfacq_c_dsl test_factory_wgtfacq_c (new)

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

@jenkins-apn
Copy link
Copy Markdown

Hi there, this is jenkins continuous integration...
Do you want me to verify this patch?

1 similar comment
@jenkins-apn
Copy link
Copy Markdown

Hi there, this is jenkins continuous integration...
Do you want me to verify this patch?

…trics_factory.py

- Add test_factory_wgtfacq_c to test_metrics_factory.py for WGTFACQ_C coverage
- Remove test_compute_weight_factors.py (all tests now covered by factory tests)

Agent-Logs-Url: https://github.com/C2SM/icon4py/sessions/c16da518-be23-48a9-ac02-71b17d5f861d

Co-authored-by: jcanton <5622559+jcanton@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove duplication between test_compute_weight_factors and test_metrics_factory Remove duplication between test_compute_weight_factors.py and test_metrics_factory.py Mar 30, 2026
Copilot AI requested a review from jcanton March 30, 2026 10:25
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.

Remove duplication between test_compute_weight_factors.py and test_metrics_factory.py

3 participants