Files
OpenBB/tests/bots/economy/test_performance.py
Artem Veremey b7d30c22dd Updating dependencies and putting kaleido into a shibajail (#1592)
* Updating dependencies and putting kaleido into a shibajail

* Downgrading jinja2 to accomodate papermill

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-03-29 12:26:12 -07:00

35 lines
795 B
Python

import pytest
from bots.economy.performance import performance_command
@pytest.mark.bots
@pytest.mark.parametrize(
"group",
[
"sector",
"industry",
"basic_materials",
"communication_services",
"consumer_cyclical",
"consumer_defensive",
"energy",
"financial",
"healthcare",
"industrials",
"real_estate",
"technology",
"utilities",
"country",
"capitalization",
],
)
@pytest.mark.vcr
def test_performance_command(mocker, recorder, group):
mocker.patch("bots.helpers.uuid_get", return_value="1")
value = performance_command(group)
value["view"] = value["view"].__name__
value["embed"] = None
value["choices"] = None
recorder.capture(value)