Skip to content

Commit

Permalink
Test worked! Now onto the variables.
Browse files Browse the repository at this point in the history
Currently successfully running all of the tests in my repo only, so I can cancel the jobs if need be. Also, I am now able to test out using API keys in the workflow. It looks like the `TEST_ENVVAR = os.environ["TEST_ENVVAR"]` method is unrecognized/invalid, so I'm removing it and trying out the .get method instead.
  • Loading branch information
nataliejschultz committed Sep 18, 2023
1 parent e89ae7e commit 5cf4a0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions emission/individual_tests/TestNominatim.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
NOMINATIM_QUERY_URL_env = os.environ.get("NOMINATIM_QUERY_URL", "")
NOMINATIM_QUERY_URL = NOMINATIM_QUERY_URL_env if NOMINATIM_QUERY_URL_env != "" else eco.NOMINATIM_QUERY_URL
GEOFABRIK_QUERY_URL = os.environ.get("GEOFABRIK_QUERY_URL")
TEST_ENVVAR = os.environ["TEST_ENVVAR"]
# TEST_ENVVAR = os.environ["TEST_ENVVAR"]
TEST_2ENVVAR = os.environ.get("TEST_ENVVAR")
print("get method", TEST_2ENVVAR)
TEST_KEY = os.environ["TEST_KEY"]
TEST_2KEY = os.environ.get("TEST_KEY")
print("first method", TEST_ENVVAR)
# print("first method", TEST_ENVVAR)
print("get method", TEST_2ENVVAR)
print("first metho key", TEST_KEY)
print("get method key", TEST_2KEY)
Expand Down

0 comments on commit 5cf4a0d

Please sign in to comment.