forked from kenzuya/unshackle
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -11,11 +11,6 @@ from unshackle.core.utilities import try_ensure_utf8
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
|
||||
def test_utf8_input_is_returned_unchanged() -> None:
|
||||
data = "caf\u00e9 \u2014 \u65e5\u672c".encode("utf8")
|
||||
assert try_ensure_utf8(data) is data
|
||||
|
||||
|
||||
def test_cp1252_input_is_converted_to_utf8() -> None:
|
||||
assert try_ensure_utf8(b"caf\xe9 \x93q\x94") == "caf\u00e9 \u201cq\u201d".encode("utf8")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user