-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
openbb_terminal tests: coverage (61% -> 65%) #1664
Conversation
@Chavithra I cannot figure out how to mock matplotlib so that it will not show graphs in |
@colin99d Looks good to me! 👍 |
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.
There is an issue on my Windows :
> path_cmd = dir_path.split("openbb_terminal/")[1].replace("/", "_")
E IndexError: list index out of range
Maybe that's related to the OS separator.
========================================================================================================================== short test summary info ==========================================================================================================================
FAILED tests/openbb_terminal/common/quantitative_analysis/test_qa_view.py::test_display_summary - IndexError: list index out of range
FAILED tests/openbb_terminal/common/quantitative_analysis/test_qa_view.py::test_display_cdf[None] - IndexError: list index out of range
FAILED tests/openbb_terminal/common/quantitative_analysis/test_qa_view.py::test_display_seasonal[False] - IndexError: list index out of range
FAILED tests/openbb_terminal/common/quantitative_analysis/test_qa_view.py::test_display_seasonal[True] - IndexError: list index out of range
FAILED tests/openbb_terminal/common/quantitative_analysis/test_qa_view.py::test_display_normality - IndexError: list index out of range
======================================================================================================================= 5 failed, 23 passed in 5.71s ========================================================================================================================
@@ -0,0 +1,4 @@ | |||
|
|||
The following args couldn't be interpreted: ['-n', 'dataset'] |
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.
Is there an issue there ?
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.
@Chavithra can you try with my changes and let me know if that resolves it.. haha get it? I'll walk myself out...
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.
@Chavithra this is not an issue.
Fix any windows path issues
oops forgot import lol
Description
Expanding general terminal tests. Will plan on being ready to merge on Sunday night regardless of how many tests have been written: Adding tests to:
@JerBouma I also added some enhancements to the econometrics controller to make it more robust. Can you please confirm these changes are desired?
@Chavithra the tests pass now. I BELIEVE
matplotlib.pyplot.show
is now fully mocked.Also, Fixes #1667
How has this been tested?
Ran pytest.
Checklist:
Others
pre-commit install
.pytest tests/...
.