test: test_questions_ui: ensure that we can select "none" (!1911)

This commit is contained in:
Minecrell 2020-04-11 20:23:33 +02:00
parent 7f0898f1c5
commit 6731d02c4b
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,9 @@ def test_questions_keymaps(args, monkeypatch):
def test_questions_ui(args, monkeypatch):
args.aports = pmb_test.const.testdata + "/init_questions_device/aports"
fake_answers(monkeypatch, ["none"])
assert pmb.config.init.ask_for_ui(args) == "none"
fake_answers(monkeypatch, ["invalid_UI", "weston"])
assert pmb.config.init.ask_for_ui(args) == "weston"