File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 33import os
44import sys
55
6- from typing import List
76from itertools import product
87import numpy as np
98import pytest
@@ -284,6 +283,12 @@ def test_infer_stage_type(self):
284283 assert pdal .Writer ("foo.xxx" ).type == ""
285284 assert pdal .Reader ().type == ""
286285 assert pdal .Writer ().type == ""
286+ assert pdal .Reader ({"path" : "foo.las" }).type == "readers.las"
287+ assert pdal .Writer ({"path" : "foo.las" }).type == "writers.las"
288+ assert pdal .Reader ({"path" : "foo.xxx" }).type == ""
289+ assert pdal .Writer ({"path" : "foo.xxx" }).type == ""
290+ assert pdal .Reader ({}).type == ""
291+ assert pdal .Writer ({}).type == ""
287292
288293 def test_streamable (self ):
289294 """Can we distinguish streamable from non-streamable stages and pipeline"""
You can’t perform that action at this time.
0 commit comments