Merge lp:~sinzui/juju-ci-tools/notraised-init into lp:juju-ci-tools
Proposed by
Curtis Hovey
Status: | Merged |
---|---|
Merged at revision: | 1976 |
Proposed branch: | lp:~sinzui/juju-ci-tools/notraised-init |
Merge into: | lp:juju-ci-tools |
Diff against target: |
105 lines (+33/-10) 2 files modified
assess_add_cloud.py (+2/-2) tests/test_assess_add_cloud.py (+31/-8) |
To merge this branch: | bzr merge lp:~sinzui/juju-ci-tools/notraised-init |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+321907@code.launchpad.net |
Description of the change
Pass and accept cloud_spec to NotRaised.
This fixes the error seen in CI
assess_
https:/
NotRaised.__init__ did not accept and argument, but thought it has a cloud_spec to look the for expected exception. The caller was passing the exception, not a cloud_spec.
There are also some indentation fixes to hush lint.
To post a comment you must log in.
Thanks.
Your linter seems very different from flake8's.
At 51 and 60, maybe it would be better to put a newline before "spec", and indent all of the parameters to make_long_endpoint? It seems a bit odd to have parameters indented the same as the method.