@@ -31,30 +31,30 @@ def fetch_json(self, filename):
3131 return output
3232
3333class TestPipeline (PDALTest ):
34- #
34+
3535 @unittest .skipUnless (os .path .exists (os .path .join (DATADIRECTORY , 'sort.json' )),
3636 "missing test data" )
3737 def test_construction (self ):
3838 """Can we construct a PDAL pipeline"""
3939 json = self .fetch_json ('sort.json' )
4040 r = pdal .Pipeline (json )
41- #
41+
4242 @unittest .skipUnless (os .path .exists (os .path .join (DATADIRECTORY , 'sort.json' )),
4343 "missing test data" )
4444 def test_execution (self ):
4545 """Can we execute a PDAL pipeline"""
4646 x = self .fetch_json ('sort.json' )
4747 r = pdal .Pipeline (x )
48- # r.validate()
48+ r .validate ()
4949 r .execute ()
5050 self .assertGreater (len (r .pipeline ), 200 )
51- #
51+
5252 def test_validate (self ):
5353 """Do we complain with bad pipelines"""
5454 r = pdal .Pipeline (bad_json )
5555 with self .assertRaises (RuntimeError ):
5656 r .validate ()
57- #
57+
5858 @unittest .skipUnless (os .path .exists (os .path .join (DATADIRECTORY , 'sort.json' )),
5959 "missing test data" )
6060 def test_array (self ):
@@ -69,7 +69,7 @@ def test_array(self):
6969 a = arrays [0 ]
7070 self .assertAlmostEqual (a [0 ][0 ], 635619.85 , 7 )
7171 self .assertAlmostEqual (a [1064 ][2 ], 456.92 , 7 )
72- #
72+
7373 @unittest .skipUnless (os .path .exists (os .path .join (DATADIRECTORY , 'sort.json' )),
7474 "missing test data" )
7575 def test_metadata (self ):
@@ -82,8 +82,8 @@ def test_metadata(self):
8282 import json
8383 j = json .loads (metadata )
8484 self .assertEqual (j ["metadata" ]["readers.las" ][0 ]["count" ], 1065 )
85- #
86- #
85+
86+
8787 @unittest .skipUnless (os .path .exists (os .path .join (DATADIRECTORY , 'sort.json' )),
8888 "missing test data" )
8989 def test_no_execute (self ):
@@ -114,7 +114,7 @@ def test_schema(self):
114114 r .validate ()
115115 r .execute ()
116116 self .assertEqual (r .schema ['schema' ]['dimensions' ][0 ]['name' ], 'X' )
117- #
117+
118118 @unittest .skipUnless (os .path .exists (os .path .join (DATADIRECTORY , 'chip.json' )),
119119 "missing test data" )
120120 def test_merged_arrays (self ):
@@ -125,7 +125,7 @@ def test_merged_arrays(self):
125125 r .execute ()
126126 arrays = r .arrays
127127 self .assertEqual (len (arrays ), 43 )
128- #
128+
129129
130130class TestArrayLoad (PDALTest ):
131131
0 commit comments