[
https://issues.apache.org/jira/browse/AURORA-892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David McLaughlin reassigned AURORA-892:
---------------------------------------
Assignee: David McLaughlin
> Improve specs for command line option mocks in Python tests
> -----------------------------------------------------------
>
> Key: AURORA-892
> URL: https://issues.apache.org/jira/browse/AURORA-892
> Project: Aurora
> Issue Type: Task
> Components: Technical Debt, Testing
> Reporter: David McLaughlin
> Assignee: David McLaughlin
> Priority: Minor
>
> When trying to mock the objects generated by our command line options
> wrappers, we use specs. e.g.
> {code}
> mock_options = Mock(spec_set=['cluster', 'disable_all_hooks', 'duration',
> 'filename', 'grouping',
> 'hosts', 'percentage', 'post_drain_script', 'reason',
> 'unsafe_hosts_filename', 'verbosity'])
> {code}
> These specs are duplicating strings defined in the command verbs and nouns.
> We should instead look to introspect our commands and pull the list of
> acceptable options from there - and use that to define our specs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)