Skip to content

Commit 27571aa

Browse files
committed
Update available_ringmodes test
1 parent 2fe8b2c commit 27571aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_load.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,8 @@ def test_available_ringmodes():
147147
"I04THz",
148148
}
149149
assert available_ringmodes() == ringmodes
150-
assert available_ringmodes(Path(__file__).resolve().parent.parent) == set()
150+
bad_path = Path(__file__).resolve().parent.parent
151+
with pytest.raises(OSError):
152+
available_ringmodes(bad_path)
153+
good_path = bad_path / "src/pytac/data"
154+
assert available_ringmodes(good_path) == ringmodes

0 commit comments

Comments
 (0)