mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-09 10:51:57 +00:00
* Added common/helper tests * expanded bot testing * few changes * import fix * missed removing test config * column order fix * import fix * removed df2img add new deps * req * update readme * add dep for image export, fix * get rid of yahoo-fin, add image export lib * import issues in some machines fix * images dir fix * init fix * fix? * test * test * Fixed text handling * missed a tbl * Fixed tests * Fixed poetry * Fixed kaliedo * Fixed codecov * Fixed dependencies * Added fix * FIxed tests * Added image cleanup * Added tests * Fixed tests * Added test fix * Added conda * Updated bot path * refactor * poetry * update dict/ fix slack image upload * Update config_discordbot.py * Updated * Fixed tests * Skipped energy * fixes * black * fix * import * fix nan on smile * added env settings * add cmds_text dict, some chgs * merge bot test fixes * fix duplicate Co-authored-by: teh_coderer <me@tehcoderer.com> Co-authored-by: Colin Delahunty <colindelahunty@MacBook-Pro.local> Co-authored-by: Chavithra <chavithra@gmail.com>
34 lines
777 B
Python
34 lines
777 B
Python
import pytest
|
|
|
|
from bots.economy.performance import performance_command
|
|
|
|
|
|
@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)
|