Skip to content

Commit d9ba6ab

Browse files
committed
Normalize line endings to LF
1 parent ddab942 commit d9ba6ab

File tree

5 files changed

+22611
-22578
lines changed

5 files changed

+22611
-22578
lines changed

soil_id/tests/global/test_global.py

+29-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,33 @@
1313
# You should have received a copy of the GNU Affero General Public License
1414
# along with this program. If not, see https://www.gnu.org/licenses/.
1515

16+
import logging
17+
import time
1618

17-
def test_true():
18-
assert True
19+
from soil_id.global_soil import list_soils_global, rank_soils_global, sg_list
20+
21+
test_locations = [
22+
{"lon": -1.4631, "lat": 7.3318},
23+
]
24+
25+
26+
def test_soil_location():
27+
28+
for item in test_locations:
29+
logging.info(f"Testing {item['lon']}, {item['lat']}")
30+
start_time = time.perf_counter()
31+
list_soils_result = list_soils_global(item["lon"], item["lat"])
32+
logging.info(f"...time: {(time.perf_counter()-start_time):.2f}s")
33+
rank_soils_result = rank_soils_global(
34+
item["lon"],
35+
item["lat"],
36+
list_output_data=list_soils_result,
37+
soilHorizon=[],
38+
horizonDepth=[],
39+
rfvDepth=[],
40+
lab_Color=[],
41+
bedrock=None,
42+
cracks=None,
43+
)
44+
sg_soils_result = sg_list(item["lon"], item["lat"])
45+
return (list_soils_result, rank_soils_result, sg_soils_result)

0 commit comments

Comments
 (0)