aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David McLaughlin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AURORA-248) Use Mock with specs in client tests
Date Wed, 22 Oct 2014 23:19:34 GMT

    [ https://issues.apache.org/jira/browse/AURORA-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14180731#comment-14180731
] 

David McLaughlin commented on AURORA-248:
-----------------------------------------

https://reviews.apache.org/r/27058

> Use Mock with specs in client tests
> -----------------------------------
>
>                 Key: AURORA-248
>                 URL: https://issues.apache.org/jira/browse/AURORA-248
>             Project: Aurora
>          Issue Type: Bug
>          Components: Client
>            Reporter: Maxim Khutornenko
>            Assignee: David McLaughlin
>            Priority: Critical
>              Labels: newbie
>
> While investigating AURORA-247, figured out that none of our tests is capable of catching
unknown options due to spec-less way options are mocked. Use Mock(spec=['option1', 'option2',
...]) instead of Mock() everywhere in client tests to prevent issues like AURORA-247. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message