Skip to content

Commit

Permalink
tests: treat empty env value as a missing env
Browse files Browse the repository at this point in the history
GH Actions passes an empty env even if a secret value has been removed
  • Loading branch information
KostyaEsmukov committed Nov 13, 2022
1 parent 4ae15ce commit df001e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/geocoders/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, env):

def __getitem__(self, key):
assert self.is_internet_access_allowed is not None
if key not in self:
if key not in self or not super().__getitem__(key):
if self.is_internet_access_allowed:
pytest.skip("Missing geocoder credential: %s" % (key,))
else:
Expand Down

0 comments on commit df001e2

Please sign in to comment.