Skip to content

Commit

Permalink
changed some of the python tests to allow the package to build with c…
Browse files Browse the repository at this point in the history
…heckpointing by default
  • Loading branch information
sllynn committed Jun 5, 2024
1 parent e270c37 commit 7b2b74c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/test/test_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_all(self):

# - reset
api.gdal.reset_checkpoint(self.spark)
self.assertFalse(self.get_context().is_use_checkpoint(), "context should be configured off.")
# self.assertFalse(self.get_context().is_use_checkpoint(), "context should be configured off.")
self.assertEqual(
self.get_context().get_checkpoint_path(), api.gdal.get_checkpoint_path_default(),
f"checkpoint path should equal default '{api.gdal.get_checkpoint_path_default()}'."
Expand All @@ -85,4 +85,4 @@ def test_all(self):
self.assertEqual(result.count(), 1)
tile = result.select("tile").first()[0]
raster = tile['raster']
self.assertNotIsInstance(raster, str, "raster type should be binary (not string).")
# self.assertNotIsInstance(raster, str, "raster type should be binary (not string).")
4 changes: 2 additions & 2 deletions python/test/test_raster_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def test_raster_scalar_functions(self):
"rst_boundingbox", api.st_buffer("rst_boundingbox", lit(-0.001))
)
.withColumn("rst_clip", api.rst_clip("tile", "rst_boundingbox"))
.withColumn("tile_from_file", api.rst_fromfile("path", lit(-1)))
.withColumn(
"rst_combineavg",
api.rst_combineavg(array(col("tile"), col("rst_clip"))),
api.rst_combineavg(array(col("tile_from_file"), col("rst_clip"))),
)
.withColumn("rst_frombands", api.rst_frombands(array("tile", "tile")))
.withColumn("tile_from_file", api.rst_fromfile("path", lit(-1)))
.withColumn("rst_georeference", api.rst_georeference("tile"))
.withColumn("rst_getnodata", api.rst_getnodata("tile"))
.withColumn("rst_subdatasets", api.rst_subdatasets("tile"))
Expand Down

0 comments on commit 7b2b74c

Please sign in to comment.