diff --git a/tests/conftest.py b/tests/conftest.py index 898185432..5878dae61 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -41,8 +41,9 @@ def unreadable_file(tmp_path): file_path = tmp_path / "unreadable.h5" file_mock = mock_open() file_mock.return_value.read.side_effect = PermissionError - with patch("builtins.open", side_effect=file_mock), patch.object( - Path, "exists", return_value=True + with ( + patch("builtins.open", side_effect=file_mock), + patch.object(Path, "exists", return_value=True), ): yield { "file_path": file_path, diff --git a/tests/test_integration/test_io.py b/tests/test_integration/test_io.py index 316485c4e..2d88c9027 100644 --- a/tests/test_integration/test_io.py +++ b/tests/test_integration/test_io.py @@ -60,9 +60,10 @@ def test_to_sleap_analysis_file_returns_same_h5_file_content( ds = load_poses.from_sleap_file(sleap_h5_file_path, fps=fps) save_poses.to_sleap_analysis_file(ds, new_h5_file) - with h5py.File(ds.source_file, "r") as file_in, h5py.File( - new_h5_file, "r" - ) as file_out: + with ( + h5py.File(ds.source_file, "r") as file_in, + h5py.File(new_h5_file, "r") as file_out, + ): assert set(file_in.keys()) == set(file_out.keys()) keys = [ "track_occupancy",