mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-14 03:49:48 +03:00
test: test_questions_ui_extras: add tests for UI extras (!1911)
Ensure that it does not fail with the "none" UI (it does at the moment).
This commit is contained in:
parent
6731d02c4b
commit
87f81de052
2 changed files with 16 additions and 0 deletions
|
@ -223,6 +223,17 @@ def test_questions_ui(args, monkeypatch):
|
|||
assert pmb.config.init.ask_for_ui(args) == "weston"
|
||||
|
||||
|
||||
def test_questions_ui_extras(args, monkeypatch):
|
||||
args.aports = pmb_test.const.testdata + "/init_questions_device/aports"
|
||||
assert not pmb.config.init.ask_for_ui_extras(args, "none")
|
||||
|
||||
fake_answers(monkeypatch, ["n"])
|
||||
assert not pmb.config.init.ask_for_ui_extras(args, "weston")
|
||||
|
||||
fake_answers(monkeypatch, ["y"])
|
||||
assert pmb.config.init.ask_for_ui_extras(args, "weston")
|
||||
|
||||
|
||||
def test_questions_work_path(args, monkeypatch, tmpdir):
|
||||
# Existing paths (triggering various errors)
|
||||
func = pmb.config.init.ask_for_work_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue