Skip to content

Commit 85b0fe5

Browse files
committed
chore: lint
1 parent c698165 commit 85b0fe5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

junifer_data/tests/test_utils.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ def test_check_dataset_hexsha_errors(tmp_path: Path) -> None:
4545
Pytest fixture that provides a temporary directory.
4646
4747
"""
48-
with pytest.raises(ValueError, match="Cannot verify hexsha for main tag."):
48+
with pytest.raises(
49+
ValueError, match=r"Cannot verify hexsha for main tag."
50+
):
4951
check_dataset(data_dir=tmp_path, hexsha="wrong")
5052

5153
# Now clone the dataset without checking
5254
check_dataset(data_dir=tmp_path, tag="1")
5355

54-
with pytest.raises(ValueError, match="Commit verification failed."):
56+
with pytest.raises(ValueError, match=r"Commit verification failed."):
5557
check_dataset(data_dir=tmp_path, tag="1", hexsha="wrong")
5658

5759
# Check with the right hexsha
@@ -73,7 +75,7 @@ def test_check_dataset_hexsha_errors(tmp_path: Path) -> None:
7375
dataset.repo.add((ds_path / "test.txt").as_posix())
7476
dataset.repo.commit(msg="update")
7577

76-
with pytest.raises(ValueError, match="Wrong commit checked out."):
78+
with pytest.raises(ValueError, match=r"Wrong commit checked out."):
7779
check_dataset(data_dir=tmp_path, tag="1")
7880

7981
# Update tag
@@ -84,7 +86,7 @@ def test_check_dataset_hexsha_errors(tmp_path: Path) -> None:
8486
check_dataset(data_dir=tmp_path, tag="1")
8587

8688
# But does not have the right hexsha
87-
with pytest.raises(ValueError, match="Commit verification failed."):
89+
with pytest.raises(ValueError, match=r"Commit verification failed."):
8890
check_dataset(
8991
data_dir=tmp_path,
9092
tag="1",

0 commit comments

Comments
 (0)