Skip to content

Conversation

@as6520
Copy link

@as6520 as6520 commented Mar 6, 2020

No description provided.

@as6520 as6520 requested a review from Purg March 6, 2020 21:30
Copy link
Member

@Purg Purg left a comment

Choose a reason for hiding this comment

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

Some capitalization for consistency and an import issue as interpreted from the doc-test perspective.

@as6520 as6520 requested a review from Purg March 6, 2020 22:50
Copy link
Member

@Purg Purg left a comment

Choose a reason for hiding this comment

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

Python 2.7 unit test issue. Yes yes, python 2 is deprecated, but I'm not sure its appropriate to fully deprecate tests just yet. Also that would be a different PR.

Copy link
Member

@Purg Purg left a comment

Choose a reason for hiding this comment

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

Not sure why travis-ci results are not showing readilly in the review section at the bottom, but that's still failing if you go to https://travis-ci.org/github/Kitware/SMQTK/ and then find your branch in there. TLDR there's a missing line-continuation in the doc-test.

It may be helpful to run pytest or setup.py test locally to make sure things pass and then use CI as a double check.

Comment on lines +79 to +80
>>> NonCompliantDefault.get_default_config() ==
... {'power_func': {'module': 'math', 'attribute': 'pow'}}
Copy link
Member

Choose a reason for hiding this comment

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

Failing doc-test: requires a slash at the end for the line continuation.

Suggested change
>>> NonCompliantDefault.get_default_config() ==
... {'power_func': {'module': 'math', 'attribute': 'pow'}}
>>> NonCompliantDefault.get_default_config() == \
... {'power_func': {'module': 'math', 'attribute': 'pow'}}

Comment on lines +82 to +83
>>> json.dumps(NonCompliantDefault.get_default_config()) ==
... {"power_func": {"module": "math", "attribute": "pow"}}
Copy link
Member

Choose a reason for hiding this comment

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

Failing doc-test: requires a slash at the end for the line continuation.

Suggested change
>>> json.dumps(NonCompliantDefault.get_default_config()) ==
... {"power_func": {"module": "math", "attribute": "pow"}}
>>> json.dumps(NonCompliantDefault.get_default_config()) == \
... {"power_func": {"module": "math", "attribute": "pow"}}

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.

2 participants