test: test_questions_ui: use local aports (!1911)

This allows us to test the extras UI implementation without
modifying some packages in pmaports.
This commit is contained in:
Minecrell 2020-04-11 20:22:06 +02:00
parent 181687a2d7
commit 7f0898f1c5
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 13 additions and 0 deletions

View file

@ -214,6 +214,8 @@ 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, ["invalid_UI", "weston"])
assert pmb.config.init.ask_for_ui(args) == "weston"