Skip to content

Commit

Permalink
Fix tests for reading aliases from files
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver authored Apr 20, 2023
1 parent 42ecf68 commit 76635d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extra_data/tests/test_aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_json_alias_file(mock_sa3_control_data, mock_sa3_control_aliases, tmp_pa
}
''')

run = H5File(mock_sa3_control_data).with_aliases(mock_sa3_control_aliases)
run = H5File(mock_sa3_control_data).with_aliases(aliases_path)
assert run._aliases == mock_sa3_control_aliases


Expand Down Expand Up @@ -122,7 +122,7 @@ def test_yaml_alias_file(mock_sa3_control_data, mock_sa3_control_aliases, tmp_pa
bogus-key: [SA1_XTD2_XGM/DOOCS/MAIN, foo]
''')

run = H5File(mock_sa3_control_data).with_aliases(mock_sa3_control_aliases)
run = H5File(mock_sa3_control_data).with_aliases(aliases_path)
assert run._aliases == mock_sa3_control_aliases


Expand Down Expand Up @@ -150,7 +150,7 @@ def test_toml_alias_file(mock_sa3_control_data, mock_sa3_control_aliases, tmp_pa
beam-y = "beamPosition.iyPos"
''')

run = H5File(mock_sa3_control_data).with_aliases(mock_sa3_control_aliases)
run = H5File(mock_sa3_control_data).with_aliases(aliases_path)
assert run._aliases == mock_sa3_control_aliases


Expand Down

1 comment on commit 76635d6

@philsmt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😳

Please sign in to comment.