Repository navigation
test: name tests for the behaviour they check (#2227) - #2248
Merged
Merged
Conversation
Test names, subTest labels and one assertion message described a change, counted codebase items, encoded a file:line, or said the opposite of what the test asserts. Rename each for the behaviour it pins and update every docstring that names a renamed test. Rename only: no fail-without-fix test applies.
Owner
Author
|
Review: GOOD TO GO at
|
Contributor
|
Coverage: 91.56% (unit tier, Python 3.15,
Per-file detail: the |
Owner
Author
|
Ready to merge at
|
5 tasks done
JarryShaw
added a commit
that referenced
this pull request
Oct 26, 2026
Renames (assertions unchanged): - test_case_sensitivity_from_896_still_holds -> test_get_matches_names_case_sensitively - test_get_is_now_a_classmethod_bound_the_same_way_for_callers -> test_get_is_a_classmethod_that_binds_to_the_class - test_default_still_names_the_unregistered_members_value -> test_default_names_the_unregistered_members_value - test_sibling_registries_now_stay_quiet_on_an_identical_re_registration -> test_sibling_registries_stay_quiet_on_an_identical_re_registration - test_the_two_new_sub_heading_levels_become_atx_headings -> test_dash_and_tilde_sub_headings_become_atx_headings - test_the_two_redundant_overrides_are_gone -> test_the_mh_helpers_define_no_get_override - test_the_all_extra_is_exactly_the_three_core_addon_extras -> test_the_all_extra_is_exactly_the_core_addon_extras - test_literal_is_now_a_role -> test_each_curated_reference_is_a_role_not_a_literal - test_the_four_legs_skip_only_on_a_docs_only_diff -> test_each_leg_skips_only_on_a_docs_only_diff - test_the_three_call_one_head -> test_every_acting_workflow_calls_one_head - test_registered_lookups_are_still_unaffected -> test_registered_words_resolve_to_their_registered_members - test_an_out_of_width_port_still_raises_764s_rejection -> test_an_out_of_width_port_raises_while_an_unassigned_one_resolves Also: the comment and docstring that name two of them; a wrapped docstring citation of #2248's old test_formerly_attributed_vendor_block_ no_longer_mints, now test_an_attributed_vendor_block_does_not_mint; and the change-relative assertion messages and docstring wording in the get override and all-extra checks ("no longer delegates" and kin). Touched files plus tier guard and docstring contract pass.
JarryShaw
added a commit
that referenced
this pull request
Oct 26, 2026
) Renames (assertions unchanged): - test_case_sensitivity_from_896_still_holds -> test_get_matches_names_case_sensitively - test_get_is_now_a_classmethod_bound_the_same_way_for_callers -> test_get_is_a_classmethod_that_binds_to_the_class - test_default_still_names_the_unregistered_members_value -> test_default_names_the_unregistered_members_value - test_sibling_registries_now_stay_quiet_on_an_identical_re_registration -> test_sibling_registries_stay_quiet_on_an_identical_re_registration - test_the_two_new_sub_heading_levels_become_atx_headings -> test_dash_and_tilde_sub_headings_become_atx_headings - test_the_two_redundant_overrides_are_gone -> test_the_mh_helpers_define_no_get_override - test_the_all_extra_is_exactly_the_three_core_addon_extras -> test_the_all_extra_is_exactly_the_core_addon_extras - test_literal_is_now_a_role -> test_each_curated_reference_is_a_role_not_a_literal - test_the_four_legs_skip_only_on_a_docs_only_diff -> test_each_leg_skips_only_on_a_docs_only_diff - test_the_three_call_one_head -> test_every_acting_workflow_calls_one_head - test_registered_lookups_are_still_unaffected -> test_registered_words_resolve_to_their_registered_members - test_an_out_of_width_port_still_raises_764s_rejection -> test_an_out_of_width_port_raises_while_an_unassigned_one_resolves Also: the comment and docstring that name two of them; a wrapped docstring citation of #2248's old test_formerly_attributed_vendor_block_ no_longer_mints, now test_an_attributed_vendor_block_does_not_mint; and the change-relative assertion messages and docstring wording in the get override and all-extra checks ("no longer delegates" and kin). Touched files plus tier guard and docstring contract pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make testpasses, and a test case covers the changeWhat is the purpose of your pull request?
test— tests onlyDescription
Part of #2227. Test names,
subTestlabels and one assertion message are renamed for the behaviour they check, rather than a change, a count or something false. The change touches 56 files undertests/.test_key_path_minting_is_preserved→test_key_path_resolves_without_mintingtest_mh_opaque_message_body_cannot_be_padded→…_is_padded_with_a_warningtest_37_to_39_run_where_setup_python_still_builds_them→test_each_runner_pinned_version_runs_on_its_pinned_runnertest_<cls>_call_<module>_py_<N>family →test_field_base_call,test_list_field_calland so on*_no_longer_mints→*_does_not_mint,*_matches_the_old_shape→*_matches_the_tracebacklimit_zero_shape, andTestTheCheckNamesAreUnchanged→TestEachLegIsNamedForItsVersion. The full list is in the commit.AllSevenInheritTheBareClassmethodTests→EachInheritsTheBareClassmethodTests, and similar._still_that means "continues to", spec and test-data counts, and failure messages that describe drift.test_changelog_md,test_unit_tests_queue,test_conventions_doc_claimsand the registry tests). They are renamed once those PRs land.tests/and updated.test_issue_refs_in_commentsgive 1430 passed. Renames need no fail-without-fix.