Closed tarpas closed 2 years ago
pytest "tests/openbb_terminal/stocks/insider/test_openinsider_view.py::test_print_insider_filter" "tests/openbb_terminal/stocks/government/test_quiverquant_view.py::test_call_func[display_government_buys-kwargs_dict1]" -v --tb=native --capture=no
passes for me just fine.
Seems to have been fixed by 446a29ec91bda5111.
Describe the bug It's the test suite bug. One of the tests corrupts the state/environment so that the next one fails. The natural order of tests doesn't expose this because test_quiverquant_view.py goes before test_openinsider_view.py. However, this can change so with plugins like pytest-xdist, or pytest-reverse or pytest-testmon, so I would be great to fix it, if easy.
To Reproduce I think it's easy to reproduce in any environment, just copy the first line from below to your prompt. Let me know please if not, I can show a github actions run where this happens.
Desktop (please complete the following information):
Additional context Add any other information that you think could be useful for us.