-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add and revise tests to cover fixed right limit
Principally adds and revises tests to cover new properties and methods that provide for implementing a fixed right limit. To `test_base`: - Adds mock Prices fixtures for FixedLimits, including classes defined with IntradayOnly and DailyOnly intervals. - revises `test_limits` to include tests for `limit_right_intraday` and `limit_right_daily` properties. - adds `test_limits_fixed` to test right limit properties and setup. - adds `test_live_prices`. - adds `test_latest_requestable_minute`. - adds `test__minute_to_earliest_previous_trading_minute`. - revises `test__bis_available` to include `bis_available_any`. - adds `test__bis_available_fixed_right` to test `bis_available` methods when right limit defined. - revises `test_get_prices_params_cls` to test `gpp.request_all_available_data`. To `test_daterange`, for both `TestGetterDaily` and `TestGetterIntraday` test classes: - revises `test_constructor_properties` to cover new `limit_right` and `end_limit` properties. - revises `test_get_start` to verify effect of new `limit` property and defining a fixed right limit. - revises `test_get_end` to verify effect of new `limit` and `stict` properties and defining a fixed right limit. - For `TestIntradayGetter`, specifically revises `test_get_start_too_late`, `test_get_end_ool` and `test_end_now_and_get_end_none`. To `test_data` revises `test_pre_requests` to `verify_available_any`. Also: To `prices.base` module: - Fixes `set_base_limits_right` to consider BASE_LIMITS_RIGHT attr. - Revises `_update_base_limits` to provide for not setting BASE_LIMITS attr and relying on update method at runtime. - Revises `PricesBase` class doc to cover changes to optionally provide BaseInterval, BASE_LIMITS and BASE_LIMITS_RIGHT dynamically via update methods. - Further changes to provide for defining only intraday or daily intervals. - Refactors `prices_for_symbols` from `PricesYahoo` to base. Moves test to `test_base_prices` and revises. To prices.csv module: - implements `prices_for_symbols`. Includes test to `test_csv`.
- Loading branch information
Showing
11 changed files
with
1,239 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.