diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-10-16 21:37:34 +0100 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-10-16 21:37:34 +0100 |
| commit | 96e7558ee5db759a7214cd451a3478f3b44f59a3 (patch) | |
| tree | e673aa5fb96256d43311c0e9581a2d5c6141ace6 /tests/test_features.py | |
| parent | a289d9178e89abd7dc0fb29bdd6dedf3987b4f06 (diff) | |
| parent | 91dbf844ad923e3c4bca1252dd104d8fc8ce5475 (diff) | |
Update upstream source from tag 'upstream/20231016'
Update to upstream version '20231016'
with Debian dir cd57b3fbc431f25a1408f045533dcb7f7b9975c0
Diffstat (limited to 'tests/test_features.py')
| -rw-r--r-- | tests/test_features.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_features.py b/tests/test_features.py new file mode 100644 index 0000000..a0aa3df --- /dev/null +++ b/tests/test_features.py @@ -0,0 +1,14 @@ +from unittest import mock + +from tests import base + + +class TestCaseFeatures(base.DriverTest): + def test_prompts(self): + self.use_patch(mock.patch('builtins._', create=True, + side_effect=lambda s: s)) + prompts = self.radio.get_prompts() + for p in ('info', 'experimental', 'pre_download', 'pre_upload'): + prompt = getattr(prompts, p) + if prompt is not None: + self.assertIsInstance(prompt, str) |
