Files
OpenBB/tests/bots/stocks/screener/test_performance.py
Colin Delahunty 617266ae21 Closing in on 90% Bot Coverage (#1646)
* Attempting more tests

* fix bots module not found issue

* try this syspath

* black

* fix except

* fix import sys path errors

* remove dual import

* Basic tests

* Sorry Juan

* Seperate discord commands

* fix path issues loading cmds folder

* click dep fix

* Fixed pylint

* Expanded tests

* Expanded tests

* Improve imports

* improve paths, clean up ext load, fixes

* Update pyproject.toml

* resolving windows test issues

Co-authored-by: teh_coderer <me@tehcoderer.com>
2022-04-10 22:07:07 +01:00

29 lines
663 B
Python

import pytest
try:
from bots.stocks.screener.performance import performance_command
except ImportError:
pytest.skip(allow_module_level=True)
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
"filter_query_parameters": [
("period1", "MOCK_PERIOD_1"),
("period2", "MOCK_PERIOD_2"),
("date", "MOCK_DATE"),
],
}
@pytest.mark.skip
@pytest.mark.vcr
@pytest.mark.bots
def test_performance_command(recorder):
value = performance_command("wedge_down")
value["imagefile"] = str(type(value["imagefile"]))
recorder.capture(value)