Merge lp:~jtv/gwacl/management-test-helpers into lp:gwacl
Proposed by
Jeroen T. Vermeulen
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | 148 |
Merged at revision: | 147 |
Proposed branch: | lp:~jtv/gwacl/management-test-helpers |
Merge into: | lp:gwacl |
Diff against target: |
269 lines (+89/-109) 1 file modified
management_test.go (+89/-109) |
To merge this branch: | bzr merge lp:~jtv/gwacl/management-test-helpers |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+172123@code.launchpad.net |
Commit message
Clean up management_test.go a bit, using some test helpers.
Description of the change
In my branch to create ListAllDeployments I had to add a test to management_test.go, and these tests were pretty long and heavy with fixture. So I extracted some of the repetition. There's a lot of little functions now, as is my wont, but the good news is that you can usually ignore these. The test still shrinks overall, and the actual tests shrink by a lot.
Jeroen
To post a comment you must log in.
Strange: the ListDeployments /ListAllDeploym ents split, already landed in trunk, now shows up as part of this diff. That's why it looks as if I'm increasing line count instead of reducing it. I'll see if kicking off a fresh diff helps.