Merge lp:~gmb/lpsetup/death-to-doctests-in-subcommands into lp:lpsetup
Proposed by
Graham Binns
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | 52 |
Merged at revision: | 51 |
Proposed branch: | lp:~gmb/lpsetup/death-to-doctests-in-subcommands |
Merge into: | lp:lpsetup |
Diff against target: |
236 lines (+114/-83) 2 files modified
lpsetup/subcommands/inithost.py (+2/-82) lpsetup/tests/subcommands/test_inithost.py (+112/-1) |
To merge this branch: | bzr merge lp:~gmb/lpsetup/death-to-doctests-in-subcommands |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+114393@code.launchpad.net |
Commit message
The doctests in the subcommands package have been turned into unit tests.
Description of the change
This branch removes all the subcommands doctests and turns them into unit tests. I'll tackle other doctests in separate branches.
To post a comment you must log in.
Looks good Graham.
On IRC we discussed:
1) ORing the expected file stat masks together and then using XOR with the actual mode to allow a single assertion.
2) Taking into account the new behavior of write_file_contents where it no longer added the \n.
Thanks,
Brad