From 923b8ee7c704a42bd1db459650b2058035e6e2e0 Mon Sep 17 00:00:00 2001 From: Ray Garcia Date: Thu, 16 Jun 2022 10:23:04 -0500 Subject: [PATCH] adding pydantic deps and fixing readme --- README.md | 10 +++++----- alphavantage_api_client/tests/test_client_unit.py | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cec8d8d..ce36006 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ global_quote = client.get_global_quote(event) assert global_quote.success, "Success field is missing or False" assert not global_quote.limit_reached, "Limit reached is true but not hitting API" assert global_quote.symbol == event["symbol"], "Symbol from results don't match event" -assert "metra_data" not in global_quote, "Metadata should not be present since it's not in the api" +assert "meta_data" not in global_quote, "Metadata should not be present since it's not in the api" assert len(global_quote.data) > 0, "Data field is zero or not present" print(f"Response data {global_quote.json()}") @@ -88,7 +88,7 @@ global_quote = client.get_global_quote(event) assert global_quote.success, "Success field is missing or False" assert not global_quote.limit_reached, "Limit reached is true but not hitting API" assert global_quote.symbol == event["symbol"], "Symbol from results don't match event" -assert "metra_data" not in global_quote, "Metadata should not be present since it's not in the api" +assert "meta_data" not in global_quote, "Metadata should not be present since it's not in the api" assert len(global_quote.data) > 0, "Data field is zero or not present" print(f"Response data {global_quote.json()}") @@ -117,7 +117,7 @@ global_quote = client.get_global_quote(event) assert global_quote.success, "Success field is missing or False" assert not global_quote.limit_reached, "Limit reached is true but not hitting API" assert global_quote.symbol == event["symbol"], "Symbol from results don't match event" -assert "metra_data" not in global_quote, "Metadata should not be present since it's not in the api" +assert "meta_data" not in global_quote, "Metadata should not be present since it's not in the api" assert len(global_quote.data) > 0, "Data field is zero or not present" print(f"Response data {global_quote.json()}") @@ -146,7 +146,7 @@ global_quote = client.get_global_quote(event) assert global_quote.success, "Success field is missing or False" assert not global_quote.limit_reached, "Limit reached is true but not hitting API" assert global_quote.symbol == event["symbol"], "Symbol from results don't match event" -assert "metra_data" not in global_quote, "Metadata should not be present since it's not in the api" +assert "meta_data" not in global_quote, "Metadata should not be present since it's not in the api" assert len(global_quote.data) > 0, "Data field is zero or not present" print(f"Response data {global_quote.json()}") @@ -169,7 +169,7 @@ global_quote = client.get_global_quote(event) assert global_quote.success, "Success field is missing or False" assert not global_quote.limit_reached, "Limit reached is true but not hitting API" assert global_quote.symbol == event["symbol"], "Symbol from results don't match event" -assert "metra_data" not in global_quote, "Metadata should not be present since it's not in the api" +assert "meta_data" not in global_quote, "Metadata should not be present since it's not in the api" assert len(global_quote.data) > 0, "Data field is zero or not present" print(f"Response data {global_quote.json()}") diff --git a/alphavantage_api_client/tests/test_client_unit.py b/alphavantage_api_client/tests/test_client_unit.py index 8966e98..2c8ca4b 100644 --- a/alphavantage_api_client/tests/test_client_unit.py +++ b/alphavantage_api_client/tests/test_client_unit.py @@ -30,7 +30,7 @@ def test_get_global_quote(): assert global_quote.success, "Success field is missing or False" assert not global_quote.limit_reached, "Limit reached is true but not hitting API" assert global_quote.symbol == event["symbol"], "Symbol from results don't match event" - assert "metra_data" not in global_quote, "Metadata should not be present since it's not in the api" + assert "meta_data" not in global_quote, "Metadata should not be present since it's not in the api" assert len(global_quote.data) > 0, "Data field is zero or not present" print(f"Successfully tested test_quote_stock_price for {event['symbol']}") diff --git a/setup.py b/setup.py index e0a5a43..a23b357 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,6 @@ packages=setuptools.find_packages(), py_modules=["alphavantage_api_client"], include_package_data=True, - install_requires=["requests"], + install_requires=["requests","pydantic"], python_requires=">=3.6" )