Last commit made on 2023-03-03
Get this branch:
git clone -b test-create-config https://git.launchpad.net/ppa-dev-tools
Only Bryce Harrington can upload to this branch. If you are Bryce Harrington please log in for upload directions.

Branch merges

Branch information


Recent commits

6b06eaa... by Bryce Harrington

ppa: Raise exception on invalid ppa name

This might break a few uses that are only checking for a null config,
but raising an exception in this circumstance is a better behavior.

93aba18... by Bryce Harrington

tests: Create mock PPAs with the default processors enabled

04bd333... by Bryce Harrington

tests: Add tests for create_config()

Implements test cases for the create_config() routine, including
checking for expected exceptions.

27dc753... by Bryce Harrington

ppa: Move DEFAULT_CONFIG to top level

This is to facilitate testing, so we can use this data object to
distinguish changed values.

80d8c79... by Bryce Harrington

Add typing info for argparse objects

ea33c45... by Bryce Harrington

tests: Fix comment regarding -D option

The -D option is already used as a global alias for --debug, so cannot
be used as an alias for --disable.

1fc9bd6... by Bryce Harrington

tests: Add processors to ArchiveMock

8ca9a46... by Bryce Harrington

ppa: When no release is specified, default to supported releases

Previously we were assuming the devel release (i.e. lunar currently),
however if a PPA doesn't have builds for that release there will nothing
in the output except the headers. That looks wrong and doesn't really
fit user expectations.

Instead, make the default be all currently supported Ubuntu
releases (i.e. bionic, focal, jammy, kinetic, and lunar presently). The
display code already skips output for releases that the PPA doesn't
have builds for.

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/2003094

73afeb8... by Bryce Harrington

ppa: Force display of the result log URL if --show-urls given

For brevity we omit some of the details for passing results, however if
the user has specified the --show-urls argument explicitly, they
likely will expect to see log urls for both passing and failing results.

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/2006400

f25a764... by Bryce Harrington

ppa: Set default to None for args with action store

argparse does not create Namespace attributes for arguments that the
user doesn't specify on the command line when configured with
action='store'. Explicitly setting default=None forces the attributes
to be included in the Namespace object, allowing the args to be checked
for presence.

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/2006377