-
Notifications
You must be signed in to change notification settings - Fork 27
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
Refactored restore resource #63
Conversation
def test_restore_should_be_called_once(self, mock_create): | ||
restore = { | ||
"uriOfBackupToRestore": "/rest/backups/example_backup_2014-03-06_023131" | ||
} | ||
self.resource.restore(restore) | ||
|
||
mock_create.assert_called_once_with(restore, timeout=-1, default_values=self.resource.DEFAULT_VALUES) | ||
mock_create.assert_called_once_with(restore, timeout=-1) |
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.
Why arent we using default values here, any reason to it?
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.
this refactored code is using the new base class (Resource) and in that class we are handling those default_values. So need to pass them in resource library.
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
Description
Refactored restore resource
Issues Resolved
Fixes #23
Check List
$ tox
).