Merge lp:~jtv/maas/extract-formtest-network into lp:~maas-committers/maas/trunk
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2762 |
Proposed branch: | lp:~jtv/maas/extract-formtest-network |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
282 lines (+142/-118) 2 files modified
src/maasserver/tests/test_forms.py (+0/-118) src/maasserver/tests/test_forms_network.py (+142/-0) |
To merge this branch: | bzr merge lp:~jtv/maas/extract-formtest-network |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+231397@code.launchpad.net |
Commit message
Extract NetworkForm tests into their own module.
Description of the change
Well, api.py no longer exists and its remnants are acceptably sized. The whole API has been kicked out of the top-5 of largest files. That's great.
But the next largest file, test_forms.py, is still much larger than it should be. Experience with api.py suggests to me that a thousand lines is about the maximum a module should be. And so I'm taking a few easy bites out of that test module. I'm sure my naming schemes are not great and I can't promise that I'll always cut along the right lines — but these are the things we can improve once we can see the forest as well as the trees.
Once test_forms.py has been broken up a bit, we can worry about breaking up the next largest file after that, not much smaller: forms.py itself ought to become a package, like the models, views, and API before it.
Jeroen
Looks OK. Self-approving.