Skip to content

Commit

Permalink
raise env
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin committed Apr 17, 2024
1 parent 5acac65 commit d898f73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion evdspy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ def get_api_key():
return os.getenv("EVDS_API_KEY")


if not get_api_key():
raise Exception("No API key provided from environment variables")


def test1():
setup()
save(get_api_key())


def test2():
df = get_series("TP.ODEMGZS.BDTTOPLAM",
frequency="monthly",
Expand All @@ -28,4 +32,4 @@ def test2():

if __name__ == "__main__":
test1()
test2()
test2()

0 comments on commit d898f73

Please sign in to comment.