From 861b4a42b65ab80076b4c74cdf0bf7d6393271ad Mon Sep 17 00:00:00 2001 From: Matin Mahmood Date: Wed, 8 Nov 2023 10:49:40 -0600 Subject: [PATCH] improve tests --- tests/test_eo.py | 4 ++-- tests/test_gfk_data.py | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/test_eo.py b/tests/test_eo.py index a2eee00..78d996e 100644 --- a/tests/test_eo.py +++ b/tests/test_eo.py @@ -3,9 +3,9 @@ def test_base(): save_osm_data( - region_list=["germany", "benin", "gcc-states", "SN-GM", "slovenia"], + region_list=["denmark", "benin"], primary_name="power", - feature_list=["substation", "generator", "line", "tower", "cable"], + feature_list=["substation", "generator", "line", "cable"], update=False, mp=True, data_dir=os.path.join(os.getcwd(), "earth_data_test"), diff --git a/tests/test_gfk_data.py b/tests/test_gfk_data.py index 73147f5..afdaad4 100644 --- a/tests/test_gfk_data.py +++ b/tests/test_gfk_data.py @@ -16,6 +16,7 @@ def test_view(): from pprint import pprint print(get_root_list()) + # visual inspection pprint(get_all_regions_dict(level=2)) view_regions() @@ -46,3 +47,10 @@ def test_region_tuple(): print(get_region_tuple("germany")) print(get_region_tuple("germany").short) print(get_all_valid_list()) + +def test_others(): + for o in ["gcc-states", "SN-GM"]: + r = get_region_tuple(o) + s = r.short + +