Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin committed Apr 17, 2024
1 parent 23b3d7d commit 16d07eb
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions evdspy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,25 @@ def get_api_key():

assert isinstance(get_api_key(), str)

# 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",
# start_date=default_start_date_fnc(),
# end_date=default_end_date_fnc(),
# aggregation=("avg",),
# cache=False,
# debug=False,
# api_key=get_api_key())
# print(df)
# assert isinstance(df, pd.DataFrame)
#
#
# if __name__ == "__main__":
# if not get_api_key():
# raise Exception("No API key provided from environment variables")
# test1()
# test2()
def test2():
df = get_series("TP.ODEMGZS.BDTTOPLAM",
frequency="monthly",
start_date=default_start_date_fnc(),
end_date=default_end_date_fnc(),
aggregation=("avg",),
cache=False,
debug=False,
api_key=get_api_key())
print(df)
assert isinstance(df, pd.DataFrame)


if __name__ == "__main__":

test1()
test2()

0 comments on commit 16d07eb

Please sign in to comment.