mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 21:22:24 +00:00
* 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>
29 lines
663 B
Python
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)
|