-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add more unit tests for coriolisclient.cli.*
modules
#84
Conversation
coriolisclient.cli.*
modules
382084a
to
706eff0
Compare
"types": [1, 2, -1] | ||
} | ||
|
||
result = self.provider._get_formatted_data(obj) |
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.
Could you also please add an assertLogs
?
self.assertEqual( | ||
( | ||
mock.sentinel.type, | ||
'"mock_schema"' |
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.
I don't think I like this result for json.dumps
. Could you please add a more complex example? Including objects and lists?
exceptions.CoriolisException, | ||
replica_schedules._parse_expiration_date, | ||
value | ||
) |
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.
Please add a test case for _add_schedule_group
where you at least check that arg group 'Scheduleis added to the passed
parser`.
( | ||
mock.sentinel.id, | ||
('mock_instance3%(ls)smock_instance1%(ls)smock_instance2' | ||
% {"ls": os.linesep}), |
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 could fail if run on Windows. Please use '\n'
instead
% {"ls": os.linesep}), | |
% {"ls": "\n"}), |
706eff0
to
0652c92
Compare
This PR adds unit tests for
coriolisclient.cli.migrations...services
modules.