Files
OpenBB/tests/bots/test_run_discordbot.py
Colin Delahunty 8994168e45 openbb_terminal tests: coverage (61% -> 65%) (#1664)
* 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>
2022-04-19 20:44:15 -04:00

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