Files
OpenBB/tests/openbb_terminal/forex/test_fxempire_view.py
2022-04-20 11:56:02 -04:00

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")