-
Notifications
You must be signed in to change notification settings - Fork 35
test_schemaview.py - explode tests III #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_schemaview.py - explode tests III #462
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
ef4df60
to
bb52d7a
Compare
bb52d7a
to
7f96c8f
Compare
assert set(view.all_classes()) == set(view2.all_classes()) | ||
assert set(view.all_classes(imports=False)) == set(view2.all_classes(imports=False)) |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
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 |
There was a problem hiding this comment.
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
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.