Skip to content

Commit 6c82060

Browse files
committed
adding tests for auto readers and writers
1 parent 5cf3885 commit 6c82060

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test_pio.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@ def test_pipeline_construction(self):
4545
self.assertIsInstance(pipeline, pio.PipelineSpec)
4646
self.assertEqual(len(list(pipeline.stages)), 5)
4747
self.assertEqual(json.dumps(pipeline.spec, indent=2), dummy_pipeline)
48+
49+
auto_reader = pio.readers.auto(filename="dummyinput.las")
50+
auto_writer = pio.writers.auto(filename="dummyoutput.las")
51+
52+
self.assertIn("filename", auto_reader.spec)
53+
self.assertNotIn("type", auto_reader.spec)
54+
self.assertIn("filename", auto_reader.spec)
55+
self.assertNotIn("type", auto_writer.spec)
56+
self.assertEqual(auto_reader.prefix, "readers")
57+
self.assertEqual(auto_writer.prefix, "writers")

0 commit comments

Comments
 (0)