From 9e4738cfdf36d3e4e428138d146414677fff1956 Mon Sep 17 00:00:00 2001 From: Lockefox Date: Thu, 24 Aug 2017 13:15:51 -0700 Subject: [PATCH] updating tests to reflect robinhood api change -- instruments --- tests/schemas/stocks/rh_instruments.schema | 3 ++- tests/test_stocks_prices.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/schemas/stocks/rh_instruments.schema b/tests/schemas/stocks/rh_instruments.schema index ac0746c..f9cc105 100644 --- a/tests/schemas/stocks/rh_instruments.schema +++ b/tests/schemas/stocks/rh_instruments.schema @@ -19,7 +19,8 @@ "maintenance_ratio": {"type":"string"}, "id": {"type":"string"}, "market": {"type":"string", "format":"uri"}, - "simple_name": {"type":"string"} + "simple_name": {"type":"string"}, + "tradability": {"type":"string", "enum":["tradable"]} }, "required": [ "min_tick_size", "type", "margin_initial_ratio", "url", "quote", "symbol", diff --git a/tests/test_stocks_prices.py b/tests/test_stocks_prices.py index fafbe6b..353bad3 100644 --- a/tests/test_stocks_prices.py +++ b/tests/test_stocks_prices.py @@ -160,7 +160,7 @@ def test_get_quote_rh_no_filter(self): 'maintenance_ratio', 'margin_initial_ratio', 'market', 'market_cap', 'min_tick_size', 'name', 'num_employees', 'open', 'pe_ratio', 'previous_close', 'previous_close_date', 'quote', 'simple_name', - 'splits', 'state', 'symbol', 'tradeable', 'trading_halted', 'type', + 'splits', 'state', 'symbol', 'tradeable', 'tradability', 'trading_halted', 'type', 'updated_at', 'url', 'volume', 'year_founded', 'pct_change' ] assert set(list(no_filter.columns.values)) == set(all_keys)