Skip to content

Commit 842d8de

Browse files
author
acordeir
committed
file type test
1 parent 918f820 commit 842d8de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_materialization.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ def test_to_awk_dask(build_test_samples):
115115
assert ak.all(arr2['branch1'].compute() == ak.from_numpy(np.ones(10)))
116116

117117

118+
def test_unsupported_file_format():
119+
fake_paths = {"fake-Sample": ["invalid_file.txt"]}
120+
# match is regex-level
121+
with pytest.raises(ValueError, match=r"Unsupported file format: 'invalid_file.txt'\. Files must be ROOT \(.*\) or Parquet \(.*\)"):
122+
to_awk(fake_paths)
123+
124+
125+
118126

119127

120128

0 commit comments

Comments
 (0)