fix(base): Base an Test-Spec angleichen (SDATA_SUUID, Spec-Format, parent/project)#14
Merged
Conversation
…rent/project) - SDATA_SUUID reaktiviert: Konstante + Metadata-Eintrag (suuid_str) -> behebt "'Base' object has no attribute 'SDATA_SUUID'" (16 Fehler in test_base) - get_sdata_spec() liefert 'modul:Klasse' (cls.__module__), z.B. 'sdata.base:Base' - project/parent akzeptieren Base-Objekt ODER direkten project_sname/parent_sname; Fremdtyp -> Warnung 'must be of type Base' + leerer Wert (neuer Helper _resolve_relation_sname) - print() -> logger.debug in get_sdata_did_method test_base.py: 25/27 gruen. Gesamtsuite: 184 passed (+20), 0 errors (-14), keine Regression. Die 2 Rest-Fehler haengen am separaten suuid.py-Refactor (sname-Format '@' vs '__').
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.
Problem
tests/test_base.pywar fast vollständig rot: 16 Errors durch'Base' object has no attribute 'SDATA_SUUID'plus mehrere AssertionErrors(Spec-Format, parent/project).
Änderungen
SDATA_SUUIDreaktiviert: Konstante + Metadata-Eintrag (suuid_str)._get_suuid/_set_suuid/suuid_strfunktionieren wieder.get_sdata_spec()liefertmodul:Klasseviacls.__module__→
_sdata_classz. B.sdata.base:Base(stattsdata.base.Base:Base).Base-Objekt oder einen direktenproject_sname/parent_sname-String; ein Fremdtyp erzeugt die Warnung… must be of type Baseund einen leeren Wert (neuer Helper_resolve_relation_sname).print()→logger.debuginget_sdata_did_method(Logging-Konvention).Tests
tests/test_base.py: 25/27 grün (vorher praktisch alles rot).(verifiziert:
test_data::test_to_jsonwar bereits vorher rot).Nicht in diesem PR
Die 2 verbleibenden
test_base-Fehler (test_suuid_properties,test_base_init_with_ns_name) hängen am separaten, uncommittetensuuid.py-Refactor (sname-Format@vs__, Determinismus).test_suuid_class.pyhat dort 16 eigene Fehler — eigenes Thema.