mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-12-01 05:33:37 +00:00
* quick econ fix * black * keys and feature flags * terminal name 👀 * some more replacements * some more replacements * edit pyproject * gst -> openbb * add example portfolios back to git * Update api from gst * sorry. skipping some tests * another round of names * another round of test edits * Missed some .gst refs and update timezone * water mark stuff * Fixing Names in terminal.spec and name of GTFF_DEFAULTS to OBBFF_DEFAULTS * fix more GST to OpenBB Terminal * Logging : merge conflicts with main * Revert wrong files Co-authored-by: Andrew <andrew.kenreich@gmail.com> Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt> Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
# IMPORTATION STANDARD
|
|
|
|
# IMPORTATION THIRDPARTY
|
|
import pytest
|
|
|
|
# IMPORTATION INTERNAL
|
|
from openbb_terminal.cryptocurrency.defi import terramoney_fcd_model
|
|
|
|
|
|
@pytest.mark.vcr
|
|
def test_get_staking_account_info(recorder):
|
|
result_tuple = terramoney_fcd_model.get_staking_account_info(
|
|
address="terra1jvwelvs7rdk6j3mqdztq5tya99w8lxk6l9hcqg",
|
|
)
|
|
recorder.capture_list(result_tuple)
|
|
|
|
|
|
@pytest.mark.vcr
|
|
def test_get_validators(recorder):
|
|
df = terramoney_fcd_model.get_validators()
|
|
recorder.capture_list(df)
|
|
|
|
|
|
@pytest.mark.vcr
|
|
def test_get_proposals(recorder):
|
|
df = terramoney_fcd_model.get_proposals(status="Voting")
|
|
recorder.capture_list(df)
|
|
|
|
|
|
@pytest.mark.vcr
|
|
def test_get_account_growth(recorder):
|
|
df = terramoney_fcd_model.get_account_growth(cumulative=True)
|
|
recorder.capture_list(df)
|
|
|
|
|
|
@pytest.mark.vcr
|
|
def test_get_staking_ratio_history(recorder):
|
|
df = terramoney_fcd_model.get_staking_ratio_history()
|
|
recorder.capture_list(df)
|
|
|
|
|
|
@pytest.mark.vcr
|
|
def test_get_staking_returns_history(recorder):
|
|
df = terramoney_fcd_model.get_staking_returns_history()
|
|
recorder.capture_list(df)
|