File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def test_from_code() -> None:
1616
1717def 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
3030def 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
4343def 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" )
You can’t perform that action at this time.
0 commit comments