You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8f9ad04
Browse filesBrowse the repository at this point in the historyBrowse files
Addresses the review feedback from @ttngu207 and @MilagrosMarin on #1473:
1. test_upstream_cleared_after_make now captures the actual populate instance
inside make() and asserts its _upstream is cleared afterward. The old test
probed a fresh Derived().upstream (never set -> class default None), so it
passed even if the finally-reset were deleted. Now it has teeth.
2. test_upstream_cleared_after_make_raises (new): forces make() to raise and
asserts the populate instance's upstream is still cleared -- exercising the
exception path the finally block exists for (previously zero coverage).
3. test_upstream_seen_across_tripartite_make now asserts, via id(self._upstream)
grouped per key, that all three phases share one upstream object -- proving
the docstring's 'constructed once, shared across phases' claim instead of
only checking the result.
4. test_upstream_rejects_non_ancestor now exercises both the class-form and
string-form Diagram.__getitem__ branches.
Validated locally on MySQL and PostgreSQL (full test_autopopulate.py: 18 passed,
2 skipped). Upward Part-of-Part and isolated-secondary-FK coverage remain
follow-ups (the diamond-OR and cross-schema gaps were closed at the trace layer
in #1471).
0 commit comments