Skip to content

Commit

Permalink
Add failing test to demonstrate bug in issue #62
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-isoc committed Nov 19, 2024
1 parent fa69943 commit 9e2d3a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/hdx/location/test_country.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,11 @@ def test_use_live_default(self):
assert Country._use_live is True
Country.set_use_live_default(False)
assert Country._use_live is False
# We should now be able to load from local data without setting use_live=False
Country.set_ocha_path(
script_dir_plus_file("Countries_UZB_Deleted.csv", TestCountry)
)
assert Country.get_iso3_country_code("UZBEKISTAN") is None
Country.set_use_live_default(None)
assert Country._use_live is True

Expand Down

0 comments on commit 9e2d3a7

Please sign in to comment.