subiquity/subiquitycore/tests
Olivier Gayot 4025cbf97f ui: avoid crashing when removing overlay that does not exist
BaseView.remove_overlay() would crash with AttributeError if no overlay
was found. We now add a not_found_ok parameter (defaulting to True) that
makes the function silently return if the overlay could not be found.

Passing not_found_ok=False and catching OverlayNotFoundError can be
helpful in some scenarios to do something different if no overlay was
found.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-12-07 10:31:05 +01:00
..
__init__.py tests: s/run_coro/IsolatedAsyncioTestCase/ 2022-06-23 17:43:14 -06:00
mocks.py extend "unit" test to cover finish_install 2022-11-10 11:57:21 +13:00
test_async_helpers.py SingleInstanceTask: add cancel_restart 2022-05-25 10:25:00 -06:00
test_file_util.py file_util: genericize copy routine 2022-04-11 12:51:26 -06:00
test_lsb_release.py fix some easier cases of impolite language 2022-08-29 12:30:39 -06:00
test_netplan.py Fix writing of netplan configs 2018-06-07 11:46:34 -04:00
test_prober.py probert: implement os prober arg 2022-03-29 15:09:21 -06:00
test_pubsub.py pubsub: fix test fragility 2022-05-24 13:36:02 -06:00
test_utils.py debug shell: restore orig environment 2022-06-13 14:02:32 -06:00
test_view.py ui: avoid crashing when removing overlay that does not exist 2022-12-07 10:31:05 +01:00
util.py tests: s/run_coro/IsolatedAsyncioTestCase/ 2022-06-23 17:43:14 -06:00