mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
* Attempting more tests * Began adding tests * Added keys controller tests * Added tests for settings and econometrics controller * Prevented tests from changing .env files * Fixed issues with tests * Added econometrics tests * fixed pylint issues * Added folder * Added QA tests * Fixed qa tests * Fixed qa tests * Fixed tests * Removed skip * Added mock to tests * Update helper_funcs.py Fix any windows path issues * Update helper_funcs.py oops forgot import lol * Skipped display_hist * expanded tests * Maybe mocked matplotlib everywhere Co-authored-by: teh_coderer <me@tehcoderer.com>
14 lines
240 B
Python
14 lines
240 B
Python
import pytest
|
|
|
|
# pylint: disable=C0415
|
|
|
|
|
|
@pytest.mark.bots
|
|
def test_read_root(mocker):
|
|
mocker.patch("bots.run_discordbot.gst_bot")
|
|
from bots import run_discordbot as rdbot
|
|
|
|
value = rdbot.read_root()
|
|
|
|
assert "Hello" in value
|