Skip to content

Commit

Permalink
improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnm-matin committed Nov 8, 2023
1 parent e65a95e commit 861b4a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_eo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
8 changes: 8 additions & 0 deletions tests/test_gfk_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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


0 comments on commit 861b4a4

Please sign in to comment.