Remove economy/rtps and stocks/ta/rsp (#5181)

* remove economy/rtps

* remove ta/rsp

* Forgot the sdk

* remove  from stocks/ta choices

* remove terminal ta intro reference

* remove sdk economy intro reference

* remove from integration tests

* delete gpt index txt files

* more .md files to remove

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
This commit is contained in:
James Maslek
2023-07-07 14:06:43 -04:00
committed by GitHub
parent 96727d49e9
commit 84f215d4bd
31 changed files with 2 additions and 1491 deletions

View File

@@ -1,55 +0,0 @@
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.economy import alphavantage_model
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
"filter_query_parameters": [("apikey", "MOCK_API_KEY")],
}
@pytest.mark.vcr
def test_get_sector_data(recorder):
result_df = alphavantage_model.get_sector_data()
recorder.capture(result_df)
@pytest.mark.vcr
def test_get_real_gdp(recorder):
result_df = alphavantage_model.get_real_gdp()
recorder.capture(result_df)
@pytest.mark.vcr
def test_get_gdp_capita(recorder):
result_df = alphavantage_model.get_gdp_capita()
recorder.capture(result_df)
@pytest.mark.vcr
def test_get_inflation(recorder):
result_df = alphavantage_model.get_inflation()
recorder.capture(result_df)
@pytest.mark.vcr
def test_get_cpi(recorder):
result_df = alphavantage_model.get_cpi()
recorder.capture(result_df)
@pytest.mark.vcr
def test_get_treasury_yield(recorder):
result_df = alphavantage_model.get_treasury_yield()
recorder.capture(result_df)
@pytest.mark.vcr
def test_get_unemployment(recorder):
result_df = alphavantage_model.get_unemployment()
recorder.capture(result_df)

View File

@@ -1,105 +0,0 @@
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.economy import alphavantage_view
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
"filter_query_parameters": [("apikey", "MOCK_API_KEY")],
}
@pytest.mark.default_cassette("test_realtime_performance_sector")
@pytest.mark.vcr
@pytest.mark.parametrize(
"raw",
[True, False],
)
@pytest.mark.record_stdout
def test_realtime_performance_sector(mocker, raw):
# MOCK EXPORT_DATA
mocker.patch(target="openbb_terminal.economy.alphavantage_view.export_data")
alphavantage_view.realtime_performance_sector(raw=raw)
@pytest.mark.vcr
@pytest.mark.parametrize(
"raw",
[True, False],
)
@pytest.mark.record_stdout
def test_display_real_gdp(mocker, raw):
# MOCK EXPORT_DATA
mocker.patch(target="openbb_terminal.economy.alphavantage_view.export_data")
alphavantage_view.display_real_gdp(raw=raw)
@pytest.mark.vcr
@pytest.mark.parametrize(
"raw",
[True, False],
)
@pytest.mark.record_stdout
def test_display_gdp_capita(mocker, raw):
# MOCK EXPORT_DATA
mocker.patch(target="openbb_terminal.economy.alphavantage_view.export_data")
alphavantage_view.display_gdp_capita(raw=raw)
@pytest.mark.vcr
@pytest.mark.parametrize(
"raw",
[True, False],
)
@pytest.mark.record_stdout
def test_display_inflation(mocker, raw):
# MOCK EXPORT_DATA
mocker.patch(target="openbb_terminal.economy.alphavantage_view.export_data")
alphavantage_view.display_inflation(raw=raw)
@pytest.mark.vcr
@pytest.mark.parametrize(
"raw",
[True, False],
)
@pytest.mark.record_stdout
def test_display_cpi(mocker, raw):
# MOCK EXPORT_DATA
mocker.patch(target="openbb_terminal.economy.alphavantage_view.export_data")
alphavantage_view.display_cpi(raw=raw)
@pytest.mark.vcr
@pytest.mark.parametrize(
"raw",
[True, False],
)
@pytest.mark.record_stdout
def test_display_treasury_yield(mocker, raw):
# MOCK EXPORT_DATA
mocker.patch(target="openbb_terminal.economy.alphavantage_view.export_data")
alphavantage_view.display_treasury_yield(raw=raw)
@pytest.mark.vcr
@pytest.mark.parametrize(
"raw",
[True, False],
)
@pytest.mark.record_stdout
def test_display_unemployment(mocker, raw):
# MOCK EXPORT_DATA
mocker.patch(target="openbb_terminal.economy.alphavantage_view.export_data")
alphavantage_view.display_unemployment(raw=raw)

View File

@@ -4,7 +4,7 @@
bigmac The Economist Big Mac index [Nasdaq]
events show economic calendar [Nasdaq]
edebt show external debt statistics for various countries [Wikipedia]
rtps real-time performance sectors [AlphaVantage]
valuation valuation of sectors, industry, country [Finviz]
performance performance of sectors, industry, country [Finviz]
usdli Compare the USD Liquidity Index against a choice of indices [FRED]

View File

@@ -1,14 +0,0 @@
# IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from openbb_terminal.stocks.technical_analysis import rsp_model
@pytest.mark.vcr
def test_get_rsp_image(recorder):
result = rsp_model.get_rsp()
for df in result:
recorder.capture(df)

View File

@@ -1,23 +0,0 @@
# 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(ticker):
rsp_view.display_rsp(ticker, tickers_show=True)

View File

@@ -508,21 +508,6 @@ def test_call_func_expect_queue(expected_queue, func, queue):
sheet_name=None,
),
),
(
"call_rsp",
[
"-t",
"--export=csv",
],
"rsp_view.display_rsp",
[],
dict(
s_ticker="MOCK_TICKER",
tickers_show=True,
export="csv",
sheet_name=None,
),
),
(
"call_stoch",
[