Skip to content

Commit e62559d

Browse files
committed
'Visit' Pydantic model converts timestamp into a 'datetime' object, so example visits need to be converted too
1 parent 50d6112 commit e62559d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/util/test_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
read_config,
1212
set_default_acquisition_output,
1313
)
14+
from murfey.util.models import Visit
1415

1516
test_read_config_params_matrix = (
1617
# Environment variable to set | Append to tmp_path
@@ -116,7 +117,7 @@ def test_get_visit_list(
116117

117118
# Check that expected outputs are correct (order-sensitive)
118119
for v, visit in enumerate(visits):
119-
assert visit.dict() == example_visits[v]
120+
assert visit.dict() == Visit.parse_obj(example_visits[v]).dict()
120121

121122

122123
def test_set_default_acquisition_output_normal_operation(tmp_path):

0 commit comments

Comments
 (0)