Skip to content

Commit efbe52d

Browse files
committed
chore: add dedicated test
1 parent 80d3602 commit efbe52d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_analysis/test_analysis_csv.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,12 +578,18 @@ async def test_validation(
578578
{"polyg": "geojson"},
579579
True,
580580
),
581-
# a column contains coordinates
581+
# a column contains coordinates (format: lat,lon)
582582
(
583583
{"coords": [f"{10 * k * (-1) ** k},{20 * k * (-1) ** k}" for k in range(1, 6)]},
584584
{"coords": "latlon_wgs"},
585585
True,
586586
),
587+
# a column contains coordinates (format: [lon, lat])
588+
(
589+
{"lonlat": [f"[{20 * k * (-1) ** k}, {10 * k * (-1) ** k}]" for k in range(1, 6)]},
590+
{"lonlat": "lonlat_wgs"},
591+
True,
592+
),
587593
# the table has latitude and longitude in separate columns
588594
(
589595
{

0 commit comments

Comments
 (0)