subiquity/subiquitycore/tests
Olivier Gayot 475d71e166 Allow to pass dry_run boolean to lsb_release
So that we consistently return the same value from lsb_release() across
all calls that use dry-run, the function now accepts a dry_run argument
(defaulting to False). This way, in dry-run mode, the caller does not
need to supply the path to a specific example file anymore.

  lsb_release(dry_run=True) -> will load examples/lsb-release-focal

Having said that, the caller is still left with the possibility to
specify the example file by using the path argument:

  lsb_release(path="example/lsb-release-impish")

The path and dry_run arguments are mutually exclusive: providing both
will result in a ValueError.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2021-12-17 16:00:52 +01:00
..
__init__.py Fix writing of netplan configs 2018-06-07 11:46:34 -04:00
mocks.py Proper fix for setting timezone inappropriately in dryrun 2021-07-15 10:49:32 -06:00
test_lsb_release.py Allow to pass dry_run boolean to lsb_release 2021-12-17 16:00:52 +01:00
test_netplan.py Fix writing of netplan configs 2018-06-07 11:46:34 -04:00
test_pubsub.py pubsub: remove subscribe args, more broadcast args 2021-09-24 13:11:55 -06:00
test_view.py core test_view: don't prefix local class w/ Test 2021-10-15 16:12:44 -06:00
util.py server side implementation of source selection 2021-09-13 13:23:09 +12:00