mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 14:02:06 +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
370 B
Python
19 lines
370 B
Python
import pytest
|
|
|
|
try:
|
|
from bots.groupme.run_groupme import handle_groupme
|
|
except ImportError:
|
|
pytest.skip(allow_module_level=True)
|
|
|
|
|
|
class FakeRequest:
|
|
def decode(self, _):
|
|
return '{"text": "hello", "group_id": "12345"}'
|
|
|
|
|
|
@pytest.mark.bots
|
|
def test_handle_groupme(recorder):
|
|
value = handle_groupme(FakeRequest())
|
|
|
|
recorder.capture(str(value))
|