Repository navigation
test(analytic-registry): scope the built-in declaration tests to pyegeria's own routines - #542
Merged
Merged
Conversation
…eria's own routines The RS-W2-1a tests read get_analytic_registry(), which also holds entry points from installed packages. With egeria-trellis-analytics installed they failed: 0.3.1's three routines carry no declaration, 0.4.0's declarations are the library's models (out may be a shape name, so f.kind raised AttributeError), and test_calls_cover_the_registry saw 31 names against 28 calls. The checks that read pyegeria's declaration model now iterate _BUILTINS (test_rs_w2_1a_routine_declarations, test_issue_170's every-builtin test, and the library cross-check). One registry-wide census stays, test_every_registry_entry_is_declared, asserting only that each entry has a declaration. Architect read-back RS-W2-1a, finding F1. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
This was referenced Nov 7, 2026
dwolfson
added a commit
that referenced
this pull request
Nov 7, 2026
Ships #537 (five link methods sent a properties class Egeria lacks), #538 (population= is the count keyword; scope= deprecated), #539 (declarations for every registered routine), #540 and #541 (client support and Dr.Egeria commands for Egeria 6.3 report specs, measurements and dashboards), #542 (built-in declaration tests scoped to pyegeria's own routines) and #543 (report_spec passed through the MetadataExpert find methods). Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
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.
Fixes the Architect's read-back finding F1 on #539 (RS-W2-1a). Test-only; no code or version change.
Problem. The RS-W2-1a tests read
get_analytic_registry(), which also holds entry points from installed packages. With egeria-trellis-analytics installed the micro-tests failed:test_calls_cover_the_registrysees 31 names against 28 calls;Declaration.outcan be a shape name (astr), sof.kindraisedAttributeError, and the 31-vs-28 failure remains.Fix. The checks that read pyegeria's own declaration model now iterate
analytic_registry._BUILTINS. That coverstest_rs_w2_1a_routine_declarations.py,test_issue_170's every-builtin test and the library cross-checktest_declarations_match_library.py. One census over the whole registry stays,test_every_registry_entry_is_declared, and it asserts only that each entry has a declaration.Tests (
tests/micro-tests/, Python 3.13):With 0.3.1 installed, the registry-wide census still fails, by design: 0.3.1's three entry points are undeclared.
🤖 Generated with Claude Code