Skip to content

Commit

Permalink
e_Test
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin committed Apr 17, 2024
1 parent 3eac1a7 commit c86c6ff
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions evdspy_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from evdspy import *

from evdspy import get_series, default_start_date_fnc, default_end_date_fnc


def get_api_key():
import os
return os.getenv("EVDS_API_KEY")



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__":
test1()
test2()

0 comments on commit c86c6ff

Please sign in to comment.