Files
OpenBB/tests/openbb_terminal/cryptocurrency/overview/test_loanscan_model.py
jose-donato 670402396e Replaces coingecko deprecated commands (#1650)
* 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>
2022-04-13 11:12:54 +07:00

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)