mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 07:23:25 +00:00
* removes cgproducts and cgplatforms and replaces with cr * add ignore word * added .openbb script * reverted crypto change * doc * failing tests * trying chart and fixed minh issues * Create barh * Fix ticker labels * fix test * loanscan mock * defi test * defi test * Fix defi test Co-authored-by: Minh Hoang <nminh.hoang1023@gmail.com> Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com> Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com> Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
23 lines
437 B
Python
23 lines
437 B
Python
import pytest
|
|
|
|
from openbb_terminal.cryptocurrency.overview import loanscan_model
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def vcr_config():
|
|
return {
|
|
"filter_headers": [
|
|
("User-Agent", None),
|
|
],
|
|
}
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.parametrize(
|
|
"rate_type",
|
|
["borrow", "supply"],
|
|
)
|
|
def test_get_rates(rate_type, recorder):
|
|
df = loanscan_model.get_rates(rate_type=rate_type)
|
|
recorder.capture(df)
|