-
Notifications
You must be signed in to change notification settings - Fork 30
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
Adding Section sections cardinality #384
Conversation
Also adds a set Section section cardinality convenience method.
Adds test for both sec_cardinality setter and the set_sections_cardinality convenience method.
Add tests for saving and loading of the added Section.sec_cardinality attribute.
Adds tests for the Section sub-section cardinality validation. Once the ValidationError obj provides an id attribute, the tests should be refactored.
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.
Looks good.
Want a second review or are we good to merge? |
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.
lgtm, but still I would like to throw in the type-based restrictions, what do you think?
I think we should open an issue about it and see what people think :) |
The current PR adds the basic cardinality implementation for Section.sections. It
Section.__init__
.Section.sec_cardinality
accessor methods.Section.set_sections_cardinality
convenience method.The PR refers to issue #361.