From 5cf4a0da328138da4309076dd02102eef8b87682 Mon Sep 17 00:00:00 2001 From: Natalie Schultz <90212258+nataliejschultz@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:22:05 -0600 Subject: [PATCH] Test worked! Now onto the variables. 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. --- emission/individual_tests/TestNominatim.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emission/individual_tests/TestNominatim.py b/emission/individual_tests/TestNominatim.py index d8d314b48..43bab2dff 100644 --- a/emission/individual_tests/TestNominatim.py +++ b/emission/individual_tests/TestNominatim.py @@ -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)