Skip to content

Commit ebe79f0

Browse files
committed
Remove duplicated test from merge; fix list of list test
Signed-off-by: Jason T. Brown <[email protected]>
1 parent bcb233b commit ebe79f0

File tree

2 files changed

+6
-176
lines changed

2 files changed

+6
-176
lines changed

pyrasterframes/src/main/python/tests/RasterSourceTest.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,19 @@ def l8path(b):
106106

107107
def test_list_of_list_of_str(self):
108108
lol = [
109-
[self.path(1, 1), self.path(1, 2), ],
110-
[self.path(2, 1), self.path(2, 2), ],
111-
[self.path(3, 1), self.path(3, 2), ]
109+
[self.path(1, 1), self.path(1, 2)],
110+
[self.path(2, 1), self.path(2, 2)],
111+
[self.path(3, 1), self.path(3, 2)]
112112
]
113113
df = self.spark.read.raster(lol)
114114
self.assertTrue(len(df.columns) == 4) # 2 cols of uris plus 2 cols of proj_rasters
115115
self.assertEqual(sorted(df.columns), sorted(['proj_raster_0_path', 'proj_raster_1_path',
116116
'proj_raster_0', 'proj_raster_1']))
117117
uri_df = df.select('proj_raster_0_path', 'proj_raster_1_path').distinct().collect()
118118
uri_list = [list(r.asDict().values()) for r in uri_df]
119-
self.assertEqual(sorted(uri_list), sorted(lol))
119+
self.assertTrue(lol[0] in uri_list)
120+
self.assertTrue(lol[1] in uri_list)
121+
self.assertTrue(lol[2] in uri_list)
120122

121123
def test_schemeless_string(self):
122124
import os.path

pyrasterframes/src/main/python/tests/RasterSourceTests.py

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)