Skip to content

Commit

Permalink
Get method test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nataliejschultz committed Sep 18, 2023
1 parent 5cf4a0d commit 2c7418e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions emission/individual_tests/TestNominatim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2c7418e

Please sign in to comment.