Fix test for MySQL astral unicode replacement

This commit is contained in:
Valentin Rigal 2023-07-25 10:37:29 +02:00 коммит произвёл Sebastian Hengst
Родитель 27b2f96ed5
Коммит ca5e8fd07e
1 изменённых файлов: 17 добавлений и 7 удалений

Просмотреть файл

@ -99,13 +99,23 @@ def test_store_error_summary_astral(activate_responses, test_repository, test_jo
assert failure.repository == test_repository assert failure.repository == test_repository
assert ( # Specific unicode chars cannot be inserted as MySQL pseudo-UTF8 and are replaced by a plain text representation
failure.test if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.mysql':
== u"toolkit/content/tests/widgets/test_videocontrols_video_direction.html <U+01F346>" assert (
) failure.test
assert failure.subtest == u"Test timed out. <U+010081>" == "toolkit/content/tests/widgets/test_videocontrols_video_direction.html <U+01F346>"
assert failure.message == u"<U+0F0151>" )
assert failure.stack.endswith("<U+0F0151>") assert failure.subtest == "Test timed out. <U+010081>"
assert failure.message == "<U+0F0151>"
assert failure.stack.endswith("<U+0F0151>")
else:
assert (
failure.test
== "toolkit/content/tests/widgets/test_videocontrols_video_direction.html 🍆"
)
assert failure.subtest == "Test timed out. 𐂁"
assert failure.message == "󰅑"
assert failure.stack.endswith("󰅑")
assert failure.stackwalk_stdout is None assert failure.stackwalk_stdout is None
assert failure.stackwalk_stderr is None assert failure.stackwalk_stderr is None