Skip to content

Commit a0cb7b3

Browse files
committed
updating tests
1 parent 0f5fcef commit a0cb7b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/aind_data_schema/core/mri_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def validate_primary_scan(self):
8484

8585
if self.primary_scan:
8686
if not self.vc_orientation or not self.vc_position or not self.voxel_sizes:
87-
raise ValueError("Primary scan must have vc_orientation, vc_position, and vozels_sizes fields")
87+
raise ValueError("Primary scan must have vc_orientation, vc_position, and voxel_sizes fields")
8888

8989

9090
class MriSession(AindCoreModel):

tests/test_imaging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ def test_validators(self):
335335

336336
expected_exception = (
337337
"1 validation error for MRIScan\n"
338-
" Value error, Primary scan must have vc_orientation and vc_position [type=value_error, "
339-
"input_value={'scan_index': 1, 'scan_t... {'number_averages': 3}}, input_type=dict]\n"
338+
" Value error, Primary scan must have vc_orientation, vc_position, and voxel_sizes fields "
339+
"[type=value_error, input_value={'scan_index': 1, 'scan_t... {'number_averages': 3}}, input_type=dict]\n"
340340
f" For further information visit https://errors.pydantic.dev/{PYD_VERSION}/v/value_error"
341341
)
342342
self.assertEqual(expected_exception, repr(e.exception))

0 commit comments

Comments
 (0)