Merge ppa-dev-tools:fix-lp1992568-report-common-actions into ppa-dev-tools:main
Proposed by
Bryce Harrington
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Bryce Harrington | ||||
Merged at revision: | 9e080559eef65427f3c92272101ab8f99585fc4c | ||||
Proposed branch: | ppa-dev-tools:fix-lp1992568-report-common-actions | ||||
Merge into: | ppa-dev-tools:main | ||||
Diff against target: |
137 lines (+54/-15) 3 files modified
ppa/ppa.py (+4/-5) scripts/ppa (+28/-9) tests/test_scripts_ppa.py (+22/-1) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christian Ehrhardt (community) | Approve | ||
Ubuntu Server | Pending | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+431785@code.staging.launchpad.net |
Description of the change
A fix for LP: #1992568, which seemed simple enough but I took the opportunity to add a couple command line options --quiet and --architectures, and fixed up --dry-run to actually work properly for the create command.
This also starts adding in test cases for command line options; I'll follow this same style for all future command line option tests, so any thoughts on improvements for the style (or other aspects worth testing) would be of value.
To post a comment you must log in.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
Output is indeed better now.
And enough to have a quiet option indeed, thanks for thinking about that.
A few things I thought about you tackled in later commits already.
I consider myself not the best test reviewer, but you miss testing for dry-run. ppa_group. py which covers that already. So you are good, but while looking there auto-checkers showed me: comparison: Comparison 'args.debug == True' should be 'args.debug is True' if checking for the singleton value True, or 'args.debug' if testing for truthiness"
On the general concept I wanted to ask for more tests on the actual creation but then found tests/test_
"singleton-
Maybe not for now (and it always depends which checkers style you want to follow) but a potential improvement later on?
Some minor improvement suggested inline.
But generally +1
@all - if one has deeper python test thoughts chime in.
@Bryce - maybe I should bring it up in the Pro/CI standups which are more python heavy.