Files
OpenBB/tests/openbb_terminal/stocks/technical_analysis/test_rsp_view.py
Om Gupta 3a7401dfd0 Adds relative strength percentile to stocks/ta (#2302)
* Adds relative-strength percentile to stocks/ta

* allow exporting tables

* shifted from common to stocks and added tests

* added documentation

* added in nav bar

* fix test

* remove whitespace in docstring

* fix type error

* fix test

* fix tests

* test

* added tickers to a separate table

* add image to doc

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-08-22 14:54:08 +01:00

25 lines
530 B
Python

# IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.stocks.technical_analysis import rsp_view
# pylint: disable=E1101
@pytest.mark.vcr(record_mode="none")
@pytest.mark.record_stdout()
@pytest.mark.parametrize(
"ticker",
[
("TSLA"),
(""),
],
)
def test_view(mocker, ticker):
# MOCK VISUALIZE_OUTPUT
mocker.patch(target="openbb_terminal.helper_classes.TerminalStyle.visualize_output")
rsp_view.display_rsp(ticker, tickers_show=True)