Skip to content

Commit

Permalink
test: fix seq meta in test (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 authored Feb 2, 2024
1 parent c33cb23 commit c43442a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_multid_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ def test_saving_mda(
assert mda_widget.save_info.isChecked()
meta = mda_widget.value().metadata[SEQUENCE_META_KEY]
assert meta.save_dir == str(tmp_path)
mda = mda.replace(axis_order=mda_widget.value().axis_order)

# using `metadata=mda.metadata` here to keep the SequenceMeta object
# rather than a serialized dict... this is a hack to get around a broader issue
# with the .replace method
mda = mda.replace(axis_order=mda_widget.value().axis_order, metadata=mda.metadata)
mmc = main_window._mmc

# re-register twice to fully exercise the logic of the update
Expand Down

0 comments on commit c43442a

Please sign in to comment.