David McLaughlin created AURORA-892:
---------------------------------------

             Summary: 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
            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)

Reply via email to