reformatting
formatting_check / formatting_check (push) Failing after 3s
Python Test / test (.ps1, windows-latest, 3.9) (push) Has been cancelled
Python Test / test (.sh, macos-latest, 3.9) (push) Has been cancelled
Python Test / test (.sh, ubuntu-latest, 3.9) (push) Has been cancelled
formatting_check / formatting_check (push) Failing after 3s
Python Test / test (.ps1, windows-latest, 3.9) (push) Has been cancelled
Python Test / test (.sh, macos-latest, 3.9) (push) Has been cancelled
Python Test / test (.sh, ubuntu-latest, 3.9) (push) Has been cancelled
This commit is contained in:
@@ -538,7 +538,7 @@ def test_strip_unicode_chars(input_string: str, expected: str):
|
||||
|
||||
def test_unicode_stripping_enabled(submission: MagicMock):
|
||||
"""Test that Unicode stripping is applied when enabled"""
|
||||
submission.title = 'Test 💕 emoji'
|
||||
submission.title = "Test 💕 emoji"
|
||||
formatter = FileNameFormatter("{TITLE}", "", "", strip_unicode=True)
|
||||
result = formatter._format_name(submission, "{TITLE}")
|
||||
assert "💕" not in result
|
||||
@@ -547,7 +547,7 @@ def test_unicode_stripping_enabled(submission: MagicMock):
|
||||
|
||||
def test_unicode_stripping_disabled(submission: MagicMock):
|
||||
"""Test that Unicode stripping is not applied when disabled"""
|
||||
submission.title = 'Test 💕 emoji'
|
||||
submission.title = "Test 💕 emoji"
|
||||
formatter = FileNameFormatter("{TITLE}", "", "", strip_unicode=False)
|
||||
result = formatter._format_name(submission, "{TITLE}")
|
||||
assert "💕" in result
|
||||
|
||||
Reference in New Issue
Block a user