Skip to content

Property tests and tweaks#269

Merged
jgrewe merged 11 commits intoG-Node:masterfrom
mpsonntag:propTest
Mar 27, 2018
Merged

Property tests and tweaks#269
jgrewe merged 11 commits intoG-Node:masterfrom
mpsonntag:propTest

Conversation

@mpsonntag
Copy link
Copy Markdown
Contributor

This PR adds more Property tests and adds the following tweaks:

  • Avoids an error on append, if the dtype of the Property was not set. Closes Property.append returns dtype error on unset dtype #266.
  • Makes sure that Property.append exits on empty values but accepts 0 and False.
  • Sets uncertainty to None if an empty string is passed to it.
  • Refactors the Property value test and adds extend, append and simple_attributes tests.

Replaces 'odml.Property.append' with '.extend'.
Includes some PEP8 fixes.
Replaces 'odml.Property.append' with '.extend'.
Includes some PEP8 fixes.
Removes obsolete name and value_origin tests.
Adds extend test, moves extend related code
from test_value to test_value_extend and adds
additional extend test code.
Adds append test, moves append related code
from test_value to test_value_append and adds
additional append test code.
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.4%) to 72.417% when pulling b2791c6 on mpsonntag:propTest into c16f989 on G-Node:master.

@jgrewe jgrewe merged commit 9d8af75 into G-Node:master Mar 27, 2018
@mpsonntag mpsonntag deleted the propTest branch March 27, 2018 15:29
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