Skip to content

Commit 64e187b

Browse files
committed
chore: Fix lint errors in code mappings test
1 parent 520ae1e commit 64e187b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/data/test_code_mappings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_from_code() -> None:
1616

1717
def test_invalid_from_code() -> None:
1818
"""Test invalid from_code method."""
19-
with pytest.raises(ValueError, match="999999 is not a valid code for B01_Q10_DP") as ex:
19+
with pytest.raises(ValueError, match="999999 is not a valid code for B01_Q10_DP"):
2020
B01_Q10_DP.from_code(999999)
2121

2222

@@ -29,7 +29,7 @@ def test_from_name() -> None:
2929

3030
def test_invalid_from_name() -> None:
3131
"""Test invalid from_name method."""
32-
with pytest.raises(ValueError, match="INVALID_NAME is not a valid name for B01_Q10_DP") as ex:
32+
with pytest.raises(ValueError, match="INVALID_NAME is not a valid name for B01_Q10_DP"):
3333
B01_Q10_DP.from_name("INVALID_NAME")
3434

3535

@@ -42,5 +42,5 @@ def test_from_value() -> None:
4242

4343
def test_invalid_from_value() -> None:
4444
"""Test invalid from_value method."""
45-
with pytest.raises(ValueError, match="invalid_value is not a valid value for B01_Q10_DP") as ex:
45+
with pytest.raises(ValueError, match="invalid_value is not a valid value for B01_Q10_DP"):
4646
B01_Q10_DP.from_value("invalid_value")

0 commit comments

Comments
 (0)