summaryrefslogtreecommitdiff
path: root/tests/unit/test_wxui_radiothread.py
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-10-31 12:31:46 +0000
committerDave Hibberd <hibby@debian.org>2026-10-31 12:31:46 +0000
commitdd07cc494d2f8a342ee0556a593b068800f9da5b (patch)
tree07f455fe694b4a47959b76e9f93c0306690bc6a2 /tests/unit/test_wxui_radiothread.py
parentaa0d17d5ad14d671e5ce02cb90f814e0a96fad98 (diff)
parentef0af95bac2c3d310fe55f54853904395b57f884 (diff)
Update upstream source from tag 'upstream/20261030'
Update to upstream version '20261030' with Debian dir 82dda47c52fda693a8e3b8228e4043c187b8dcfc
Diffstat (limited to 'tests/unit/test_wxui_radiothread.py')
-rw-r--r--tests/unit/test_wxui_radiothread.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/unit/test_wxui_radiothread.py b/tests/unit/test_wxui_radiothread.py
index 18d08b5..bd8fc37 100644
--- a/tests/unit/test_wxui_radiothread.py
+++ b/tests/unit/test_wxui_radiothread.py
@@ -189,24 +189,23 @@ class TestStartup(base.BaseTest):
@ddt.data(
# No arguments, no file, no previous, answer no
- [False, False, False, False, False],
+ [None, False, False, False],
# No arguments, no file, no previous, answer yes
- [False, False, False, False, True],
+ [None, False, False, True],
# No arguments, no file, previous yes, no prompt
- [False, False, False, True, None],
+ [None, False, True, None],
# No arguments, exists, previous no, no prompt
- [False, False, True, False, None],
+ [None, True, False, None],
# Opt out, no file, no prompt
- [False, True, False, None, None],
+ [False, False, None, None],
# Opt in, no file, previous yes, still prompt
- [True, False, False, True, True],
+ [True, False, True, True],
# Opt in, exists, previous no, no prompt'),
- [True, False, True, False, None],
+ [True, True, False, None],
)
@ddt.unpack
- def test_linux_desktop_file(self, optin, optout, exists, last, answ):
+ def test_linux_desktop_file(self, optin, exists, last, answ):
self.args.install_desktop_app = optin
- self.args.no_install_desktop_app = optout
os.path.exists.return_value = exists
self.conf.get_bool.return_value = last
wx.MessageBox.return_value = wx.YES if answ else wx.NO