From 75f4a70fecbf5bed15bbaaee09c4d33e6e034463 Mon Sep 17 00:00:00 2001 From: GeorgianaElena Date: Fri, 30 Aug 2019 11:26:48 +0300 Subject: [PATCH] Black refactor --- tests/unit/test_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", [