diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index b13dbc4a..6b467315 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -115,12 +115,13 @@ def test_normalize_doi(): def test_open_guess_encoding(): data = "Rică nu știa să zică râu, rățușcă, rămurică." - with tempfile.NamedTemporaryFile(mode='wb') as test_file: + with tempfile.NamedTemporaryFile(mode="wb") as test_file: test_file.write(str.encode(data, "utf-16")) test_file.seek(0) with utils.open_guess_encoding(test_file.name) as fd: assert fd.read() == data + @pytest.mark.parametrize( "req, is_local", [