diff --git a/test/test_questions.py b/test/test_questions.py index 3218adc3..bbf84978 100644 --- a/test/test_questions.py +++ b/test/test_questions.py @@ -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" diff --git a/test/testdata/init_questions_device/aports/main/postmarketos-ui-weston/APKBUILD b/test/testdata/init_questions_device/aports/main/postmarketos-ui-weston/APKBUILD new file mode 100644 index 00000000..b366af2f --- /dev/null +++ b/test/testdata/init_questions_device/aports/main/postmarketos-ui-weston/APKBUILD @@ -0,0 +1,11 @@ +pkgname=postmarketos-ui-weston +pkgver=42 +pkgrel=0 +pkgdesc="(Wayland) Reference compositor (demo, not a phone interface)" +url="https://postmarketos.org" +arch="noarch" +license="GPL-3.0-or-later" + +package() { + mkdir "$pkgdir" +}