-
Notifications
You must be signed in to change notification settings - Fork 6
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
Port main.py to new client, fix tests. #59
Conversation
3 similar comments
@@ -23,7 +23,7 @@ def test_validate_empty_dir(self): | |||
# WHEN `dpm validate` is invoked | |||
result = self.invoke(cli, ['validate']) | |||
|
|||
# THEN exit code should be 1 | |||
# THEN 'datapackage.json not found' should be printed to stdout | |||
self.assertRegexpMatches(result.output, 'Did not find datapackage.json') |
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.
in the comment should be # THEN 'Did not find datapackage.json' ...
probably
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.
Thanks. Fixed
result = self.invoke(cli, ['publish']) | ||
|
||
# THEN 'server did not return resource put url' should be printed to stdout | ||
self.assertRegexpMatches(result.output, 'server did not provide upload authorization for path:') |
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.
Minor but again, comment and actual output mismatch
Look good to me. merging |
FIxes #55