summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorXavier Xiong <[email protected]>2021-02-12 20:15:19 +0100
committerGitHub <[email protected]>2021-02-12 14:15:19 -0500
commit1548263a6c960354ef61445a5206c2190eaa79e9 (patch)
tree560031e203014bd1d5cb0afea91b6e5ac527b308 /tests
parent06092c14a9bfa3d1e5a6284d1bb681f27b00c9cb (diff)
downloadbazarr-1548263a6c960354ef61445a5206c2190eaa79e9.tar.gz
bazarr-1548263a6c960354ef61445a5206c2190eaa79e9.zip
Adding simplified and traditional Chinese subtitles support (#1236)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_assrt.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_assrt.py b/tests/test_assrt.py
index 89f51a16e..903bb5ebb 100644
--- a/tests/test_assrt.py
+++ b/tests/test_assrt.py
@@ -75,15 +75,15 @@ def test_get_matches_movie_name(movies):
@pytest.mark.converter
def test_converter_convert_alpha3():
- assert language_converters['assrt'].convert('zho', None, 'Hans') == 'chs'
- assert language_converters['assrt'].convert('zho', None, 'Hant') == 'cht'
+ assert language_converters['assrt'].convert('zho', None, 'Hans') == 'chi'
+ assert language_converters['assrt'].convert('zho', None, 'Hant') == 'zht'
assert language_converters['assrt'].convert('eng') == 'eng'
@pytest.mark.converter
def test_converter_reverse():
- assert language_converters['assrt'].reverse('chs') == ('zho', None, 'Hans')
- assert language_converters['assrt'].reverse('cht') == ('zho', None, 'Hant')
+ assert language_converters['assrt'].reverse('chi') == ('zho', None, 'Hans')
+ assert language_converters['assrt'].reverse('zht') == ('zho', None, 'Hant')
assert language_converters['assrt'].reverse(u'簡體') == ('zho', None, 'Hans')
assert language_converters['assrt'].reverse(u'繁體') == ('zho', None, 'Hant')
assert language_converters['assrt'].reverse(u'简体') == ('zho', None, 'Hans')