Skip to content

Commit

Permalink
Merge pull request #516 from jbouffard/bug-fix/more-test-fixes
Browse files Browse the repository at this point in the history
Updated the Tests so They Now Work
  • Loading branch information
Jacob Bouffard committed Oct 19, 2017
2 parents 7d82d0d + 47f07a3 commit 4f5c60d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion geopyspark/tests/base_test_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BaseTestClass(unittest.TestCase):

dir_path = geotiff_test_path("all-ones.tif")

rdd = get(LayerType.SPATIAL, dir_path)
rdd = get(LayerType.SPATIAL, dir_path, max_tile_size=1024)
value = rdd.to_numpy_rdd().collect()[0]

projected_extent = value[0]
Expand Down
2 changes: 1 addition & 1 deletion geopyspark/tests/io_tests/catalog_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class CatalogTest(BaseTestClass):
rdd = get(LayerType.SPATIAL, geotiff_test_path("srtm_52_11.tif"))
rdd = get(LayerType.SPATIAL, geotiff_test_path("srtm_52_11.tif"), max_tile_size=6001)

metadata = rdd.collect_metadata()
reprojected = rdd.tile_to_layout(layout=GlobalLayout(zoom=11), target_crs="EPSG:3857")
Expand Down
2 changes: 1 addition & 1 deletion geopyspark/tests/to_geotiff_rdd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class ToGeoTiffTest(BaseTestClass):
dir_path = geotiff_test_path("all-ones.tif")
rdd = get(LayerType.SPATIAL, dir_path)
rdd = get(LayerType.SPATIAL, dir_path, max_tile_size=1024)
metadata = rdd.collect_metadata()

mapped_types = {
Expand Down

0 comments on commit 4f5c60d

Please sign in to comment.