Files
OpenBB/tests/openbb_terminal/cryptocurrency/onchain/test_blockchain_model.py
Nate 052c16f87e Added single block data from Blockchain.com (#3406)
* Added single block data

* Added single block data tests to test_blockchain_model.py and test_blockchain_view.py

* Made changes requested by reviewer.

* Updating with some of the new changes.  Still have some to fix.

* Changed everything requested except a couple I need help on.

* Finished the last two changes.

* Resolving

* Added function for sdk and fixed a linter issue.

* Formatting

* Fixed tests

* tests

* Fix tests

Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-04 10:20:44 -05:00

25 lines
641 B
Python

import pytest
from openbb_terminal.cryptocurrency.onchain import blockchain_model
@pytest.mark.vcr
def test_get_btc_confirmed_transactions(recorder):
df = blockchain_model.get_btc_confirmed_transactions()
recorder.capture(df)
@pytest.mark.vcr
def test_get_btc_circulating_supply(recorder):
df = blockchain_model.get_btc_circulating_supply()
recorder.capture(df)
@pytest.mark.vcr
def test_get_btc_single_block(recorder):
df = blockchain_model.get_btc_single_block(
# pragma: allowlist nextline secret
"000000000000000000046af49194517cc5d1cd020692857c1dd09450a7147c6d"
)
recorder.capture(df)