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

Adding Section sections cardinality #384

Merged
merged 9 commits into from
Apr 20, 2020
Merged

Conversation

mpsonntag
Copy link
Contributor

The current PR adds the basic cardinality implementation for Section.sections. It

  • provides an update in the Section.__init__.
  • adds Section.sec_cardinality accessor methods.
  • adds a Section.set_sections_cardinality convenience method.
  • adds and registers a Section sections cardinality validation.
  • provides tests for the implemented features.

The PR refers to issue #361.

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.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 76.717% when pulling bbecc62 on mpsonntag:cardSecB into 13fd740 on G-Node:master.

@achilleas-k achilleas-k self-requested a review April 17, 2020 18:18
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@achilleas-k
Copy link
Member

Want a second review or are we good to merge?

Copy link
Member

@jgrewe jgrewe left a 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?

@jgrewe jgrewe merged commit dd29249 into G-Node:master Apr 20, 2020
@achilleas-k
Copy link
Member

I think we should open an issue about it and see what people think :)

@mpsonntag mpsonntag deleted the cardSecB branch April 22, 2020 17:44
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.

4 participants