mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
* Expanding bot tests * expanded tests * Added tests * Added stock test * Fix filepath * Attempted mock * Bots : test_run_telegram * Enhance tests * Fixed black * Expanded tests * Added fix * Ingore interactive files * Removed bot dependency installation from tests * Fix one black * Fixed black * Added init.py * Added pylint disables * Added skip Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
19 lines
501 B
Python
19 lines
501 B
Python
import pytest
|
|
|
|
try:
|
|
from bots.etf.tops import etfs_disc_command
|
|
except ImportError:
|
|
pytest.skip(allow_module_level=True)
|
|
|
|
|
|
@pytest.mark.bots
|
|
@pytest.mark.parametrize("sort", ["active"])
|
|
@pytest.mark.vcr
|
|
def test_etfs_disc_command(mocker, recorder, sort):
|
|
mocker.patch("bots.helpers.uuid_get", return_value="1")
|
|
value = etfs_disc_command(sort)
|
|
for key, value in value.items():
|
|
key = str(value)
|
|
print(f"{key}: {type(value)}-{str(value)}")
|
|
recorder.capture(value)
|