Skip to content

Commit d7b1f2c

Browse files
authored
Update pydantic version to 2.4.0 (#13)
1 parent 6f329ed commit d7b1f2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
numpy >= 1.20
2-
pydantic >= 2.0.3
2+
pydantic >= 2.4.0
33
pytest >= 7.4.0
44
pytest-cov >= 4.1.0
55
StrEnum >= 0.4.15

tests/test_controls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_base_parallel_validation(self, var1: str, var2: Any) -> None:
3838
"""Tests the parallel setter validation in BaseProcedure class."""
3939
with pytest.raises(pydantic.ValidationError) as exp:
4040
setattr(self.base_procedure, 'parallel', var1)
41-
assert exp.value.errors()[0]['msg'] == "Input should be 'single','points','contrasts' or 'all'"
41+
assert exp.value.errors()[0]['msg'] == "Input should be 'single', 'points', 'contrasts' or 'all'"
4242
with pytest.raises(pydantic.ValidationError) as exp:
4343
setattr(self.base_procedure, 'parallel', var2)
4444
assert exp.value.errors()[0]['msg'] == "Input should be a valid string"
@@ -55,7 +55,7 @@ def test_base_display_validation(self, var1: str, var2: Any) -> None:
5555
"""Tests the display setter validation in BaseProcedure class."""
5656
with pytest.raises(pydantic.ValidationError) as exp:
5757
setattr(self.base_procedure, 'display', var1)
58-
assert exp.value.errors()[0]['msg'] == "Input should be 'off','iter','notify' or 'final'"
58+
assert exp.value.errors()[0]['msg'] == "Input should be 'off', 'iter', 'notify' or 'final'"
5959
with pytest.raises(pydantic.ValidationError) as exp:
6060
setattr(self.base_procedure, 'display', var2)
6161
assert exp.value.errors()[0]['msg'] == "Input should be a valid string"

0 commit comments

Comments
 (0)