Skip to content

Commit

Permalink
update some test logic, removes polygon closure test
Browse files Browse the repository at this point in the history
  • Loading branch information
kim committed Mar 5, 2024
1 parent c7c6751 commit fca2f06
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
38 changes: 19 additions & 19 deletions yml_tests/test_URLs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ tests:
offNadirAngle: 21.5,23.1,27.1
maxResults: 10
output: csv

expected file: csv
expected code: 200

Expand Down Expand Up @@ -1900,7 +1900,7 @@ tests:

- polygon lowercase:
# polygon: -148.52,64.63,-150.41,64.64,-149.58,63.86,-148.52,64.63
intersectsWith: polygon(( -148.52,64.63 -150.41,64.64, -149.58,63.86 -148.52,64.63 ))
intersectsWith: polygon(( -148.52 64.63, -150.41 64.64, -149.58 63.86, -148.52 64.63 ))
maxResults: 100
output: csv

Expand All @@ -1920,17 +1920,17 @@ tests:
expected file: csv
expected code: 200

- polygon closure 1:
# polygon: 12.13,41.74,13.4,41.74,13.4,42.75,12.13,42.75
intersectsWith: POLYGON((12.13 41.74, 13.4 41.74, 13.4 42.75, 12.13 42.75))
platform: Sentinel-1A,Sentinel-1B
processingLevel: SLC
start: 2015-05-01T00:00:00UTC
output: csv
maxResults: 100
# - polygon closure 1:
# # polygon: 12.13,41.74,13.4,41.74,13.4,42.75,12.13,42.75
# intersectsWith: POLYGON((12.13 41.74, 13.4 41.74, 13.4 42.75, 12.13 42.75))
# platform: Sentinel-1A,Sentinel-1B
# processingLevel: SLC
# start: 2015-05-01T00:00:00UTC
# output: csv
# maxResults: 100

expected file: csv
expected code: 200
# expected file: csv
# expected code: 200

- polygon closure 2:
# polygon: 12.13,41.74,13.4,41.74,13.4,42.75,12.13,42.75,12.13,41.74
Expand All @@ -1956,14 +1956,14 @@ tests:
expected file: csv
expected code: 200

- polygon closure 4:
# polygon: -155.08,65.82,-153.5,61.91,-149.50,63.07,-149.94,64.55
intersectsWith: POLYGON(( -155.08 65.82, -153.5 61.91, -149.50 63.07, -149.94 64.55 ))
maxResults: 100
output: Csv
# - polygon closure 4:
# # polygon: -155.08,65.82,-153.5,61.91,-149.50,63.07,-149.94,64.55
# intersectsWith: POLYGON(( -155.08 65.82, -153.5 61.91, -149.50 63.07, -149.94 64.55 ))
# maxResults: 100
# output: Csv

expected file: csv
expected code: 200
# expected file: csv
# expected code: 200

- processingLevel L1.1:
processingLevel: L1.1
Expand Down
4 changes: 2 additions & 2 deletions yml_tests/test_url_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ def jsonToDict(json_data):
if file_content["count"] == 0:
content_type = "blank csv"
## DOWNLOAD / PLAIN
elif content_type == "plain":
elif content_type == "plain" or content_type == "x-python":
file_content = downloadToDict(file_content)
# how many granules are in the script:
if file_content["count"] == 0:
content_type = "blank download"
else:
content_type = "download"
content_type = "x-python"
## GEOJSON
elif content_type == "geojson":
if file_content == '{\n "features": [],\n "type": "FeatureCollection"\n}':
Expand Down

0 comments on commit fca2f06

Please sign in to comment.