-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add error classes for symbol delisting errors, closes #270 #1918
Conversation
- renamed test files conform with standards - replaced utcfromtimestamp - replaced utcnow
Can you give a simple scenario that is broken? |
The issue is that the error messages can't be ignored on a per ticker basis easily. |
requests_cache>=1.0 | ||
requests-ratelimiter>=0.3.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not required to use yfinance. They're optional and README already explains.
### Running Tests | ||
|
||
Tests have been written using the built-in Python module `unittest` | ||
|
||
An example of running all tests in a file that calls `unittest.main`: | ||
|
||
```sh | ||
python -m unittest tests.test_prices | ||
``` | ||
|
||
An example of running a test of a single method (applicable to a class as well): | ||
|
||
```sh | ||
python -m unittest tests.test_prices.TestPriceRepair.test_ticker_missing | ||
``` | ||
|
||
To run all tests | ||
|
||
```sh | ||
python -m unittest discover -s tests | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best place for this is in Developer Guide #1084 , which already describes running tests.
I'm not seeing any significant behaviour changes. |
Cool I'll just maintain my own fork then. |
Breaking changes