We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 199b695 commit 6a15836Copy full SHA for 6a15836
1 file changed
test/test_pipeline.py
@@ -3,7 +3,6 @@
3
import os
4
import sys
5
6
-from typing import List
7
from itertools import product
8
import numpy as np
9
import pytest
@@ -284,6 +283,12 @@ def test_infer_stage_type(self):
284
283
assert pdal.Writer("foo.xxx").type == ""
285
assert pdal.Reader().type == ""
286
assert pdal.Writer().type == ""
+ 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 == ""
292
293
def test_streamable(self):
294
"""Can we distinguish streamable from non-streamable stages and pipeline"""
0 commit comments