mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
* 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>
25 lines
530 B
Python
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)
|