mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
20 lines
426 B
Python
20 lines
426 B
Python
import pytest
|
|
from openbb_terminal.forex.fxempire_view import display_forward_rates
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def vcr_config():
|
|
return {"filter_headers": [("User-Agent", None)]}
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.record_stdout
|
|
def test_forwards():
|
|
display_forward_rates("USD", "EUR")
|
|
|
|
|
|
@pytest.mark.vcr
|
|
@pytest.mark.record_stdout
|
|
def test_forwards_not_known():
|
|
display_forward_rates("HUGYDIBWU", "GWUBWYBCY")
|