Skip to content
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

Handle overrides on SlotDerivation #45

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

pkalita-lbl
Copy link
Contributor

Fixes #41

These changes add a bit of logic to _derive_slot which is equivalent to what is in _derive_class when the derivation contains an overrides attribute.

The diff for tests/test_schema_mapper/test_schema_mapper.py looks messy because I converted it to a pytest style test. But mainly I was adding three new test functions:

  • test_overrides_in_class_derivation
  • test_overrides_in_slot_derivation
  • test_overrides_errors_with_unknown_attribute

@pkalita-lbl pkalita-lbl marked this pull request as ready for review December 16, 2024 21:34
@pkalita-lbl pkalita-lbl merged commit ae57f0d into main Dec 17, 2024
6 checks passed
@pkalita-lbl pkalita-lbl deleted the issue-41-slot-derivation-overrides branch December 17, 2024 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

overrides on SlotDerivation has no effect
2 participants