From 2c7418e829cbb2144c7cbcef7878e3d1fbe2c7a1 Mon Sep 17 00:00:00 2001 From: Natalie Schultz <90212258+nataliejschultz@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:41:37 -0600 Subject: [PATCH] Get method test Verified with last test that the .get method is the preferred way to set the variable. Trying a few ways to print the variables to see how it looks; I'm nervous because the last attempt printed "None". Added a print without any secrets to see if it's setting these variables at all. --- emission/individual_tests/TestNominatim.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/emission/individual_tests/TestNominatim.py b/emission/individual_tests/TestNominatim.py index 43bab2dff..03640c630 100644 --- a/emission/individual_tests/TestNominatim.py +++ b/emission/individual_tests/TestNominatim.py @@ -21,15 +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_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("get method", TEST_2ENVVAR) -print("first metho key", TEST_KEY) print("get method key", TEST_2KEY) +TEST_STR = os.environ.get("TEST_STR") +print("TESTSTRING", TEST_STR) #Creates a fake place in Rhode Island to use for testing. fake_id = "rhodeislander" key = "segmentation/raw_place"