[multimedia/kid3] src/test: Adapt integration tests for Windows
Urs Fleisch <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit a47925df9abb7bb16d87f06ffb200724495922dc by Urs Fleisch.
Committed on 20/07/2026 at 19:33.
Pushed by ufleisch into branch 'master'.
Adapt integration tests for Windows
Current versions of Windows do not seem to replace non-ASCII
characters by question marks, so the special handling is no
longer needed.
To run the integration tests on Windows, just go into the folder
containing the kid3-cli.exe file and then run
python \path\to\test_cli_functions.py
M +0 -8 src/test/test_cli_functions.py
https://invent.kde.org/multimedia/kid3/-/commit/a47925df9abb7bb16d87f06ffb200724495922dc
diff --git a/src/test/test_cli_functions.py b/src/test/test_cli_functions.py
index 4c9c5d5e..f1ab3964 100755
--- a/src/test/test_cli_functions.py
+++ b/src/test/test_cli_functions.py
@@ -421,8 +421,6 @@ class CliFunctionsTestCase(unittest.TestCase):
' Album An Album\n'
' Copyright ≠\n'
' Disc Number ≠\n')
- if sys.platform == 'win32':
- expected = expected.replace('≠', '?')
self.assertEqual(call_kid3_cli(
['-c', 'select all',
'-c', 'set artist "An Artist"',
@@ -720,8 +718,6 @@ class CliFunctionsTestCase(unittest.TestCase):
' Encoder Settings ≠\n'
' Rating Information ≠\n'
)
- if sys.platform == 'win32':
- expected = expected.replace('≠', '\\?')
self.assertRegex(call_kid3_cli(
['-c', 'select first',
'-c', 'get',
@@ -843,8 +839,6 @@ class CliFunctionsTestCase(unittest.TestCase):
' Date 2016\n'
' Track Number 1\n'
)
- if sys.platform == 'win32' and platform.release() == 'XP':
- expected = expected.replace('ö', '?')
self.assertEqual(call_kid3_cli(
['-c', 'select first',
'-c', 'set title "Schön"',
@@ -862,8 +856,6 @@ class CliFunctionsTestCase(unittest.TestCase):
' Date 2016\n'
' Track Number 1\n'
)
- if sys.platform == 'win32' and platform.release() == 'XP':
- expected = expected.replace('ö', '?')
self.assertEqual(call_kid3_cli(
['-c', 'get', os.path.join(albumdir, '*.mp3')]),
expected)