Skip to content

Conversation

ialarmedalien
Copy link
Collaborator

@ialarmedalien ialarmedalien commented Oct 2, 2025

More breakup of long schemaview test methods.

schemaview_explode_tests_II should be merged first as this branch is based on that one.

It's much easier to view this branch one commit at a time; the first commit breaks up the long test_imports test into smaller chunks, and the second commit moves those chunks to different parts of the file.

This PR also identified some repeated lines, which have been removed.

Copy link

codecov bot commented Oct 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.37%. Comparing base (85855c3) to head (7f96c8f).
⚠️ Report is 3 commits behind head on schemaview_explode_tests_II.

Additional details and impacted files
@@                     Coverage Diff                      @@
##           schemaview_explode_tests_II     #462   +/-   ##
============================================================
  Coverage                        77.37%   77.37%           
============================================================
  Files                               52       52           
  Lines                             4478     4478           
  Branches                           979      979           
============================================================
  Hits                              3465     3465           
  Misses                             785      785           
  Partials                           228      228           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ialarmedalien ialarmedalien force-pushed the schemaview_explode_tests_III branch from ef4df60 to bb52d7a Compare October 2, 2025 14:42
@ialarmedalien ialarmedalien changed the base branch from main to schemaview_explode_tests_II October 2, 2025 14:43
@ialarmedalien ialarmedalien changed the base branch from schemaview_explode_tests_II to main October 2, 2025 14:43
@ialarmedalien ialarmedalien self-assigned this Oct 2, 2025
@ialarmedalien ialarmedalien added enhancement New feature or request testing labels Oct 2, 2025
@ialarmedalien ialarmedalien changed the base branch from main to schemaview_explode_tests_II October 2, 2025 14:44
@ialarmedalien ialarmedalien force-pushed the schemaview_explode_tests_III branch from bb52d7a to 7f96c8f Compare October 2, 2025 14:46
Comment on lines +422 to +423
assert set(view.all_classes()) == set(view2.all_classes())
assert set(view.all_classes(imports=False)) == set(view2.all_classes(imports=False))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

test content, not just length

assert set(view.class_descendants(THING)) == {THING, PERSON, "Organization", COMPANY, ADULT}


def test_class_slots(schema_view_no_imports: SchemaView) -> None:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved up to be with the all_classes / class_induced_slots tests

Comment on lines -1572 to -1574
def test_induced_slot_yet_again(schema_view_with_imports: SchemaView) -> None:
"""Test induced slots yet again - no such thing as too many induced_slot tests, right?"""
view = schema_view_with_imports
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

all these already existed in the induced_slot tests that we already had

@kevinschaper kevinschaper merged commit 5ba5735 into schemaview_explode_tests_II Oct 3, 2025
17 checks passed
@kevinschaper kevinschaper deleted the schemaview_explode_tests_III branch October 3, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants