Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Nov 27, 2023
1 parent 19654d0 commit ac381e0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions processing_r/test/test_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,13 +641,6 @@ def testAlgExpressions(self):
self.assertTrue(any(['geometry <- sf::st_as_sfc("Polygon ' in line for line in script])) # pylint: disable=use-a-generator
self.assertIn('date_a <- as.POSIXct("2020-05-04", format = "%Y-%m-%d")', script)
self.assertIn('time_a <- lubridate::hms("13:45:30")', script)
line = 'array <- list(2, 10, "a", as.POSIXct("2020-05-04", format = "%Y-%m-%d"), lubridate::hms("13:45:30"), as.POSIXct("2012-05-04T12:50:00", format = "%Y-%m-%dT%H:%M:%S"))'
print(script)
self.assertEqual(line, script[10])
self.assertIn('array <- list(2, 10, "a", '
'as.POSIXct("2020-05-04", format = "%Y-%m-%d"), '
'lubridate::hms("13:45:30"), as.POSIXct("2012-05-04T12:50:00", format = "%Y-%m-%dT%H:%M:%S"))',
script)

def testAlgRasterBand(self):
"""
Expand Down

0 comments on commit ac381e0

Please sign in to comment.