blob: 9b9e91714ad580851b98bc162552b122d172634c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"""Test the Defaults class."""
from openbb_core.app.model.defaults import Defaults
def test_defaults():
"""Test the Defaults class."""
cc = Defaults(commands={"/equity/price": {"provider": "test"}})
assert isinstance(cc, Defaults)
assert cc.commands == {"equity.price": {"provider": "test"}}
def test_fields():
"""Test the Defaults fields."""
assert "commands" in Defaults.model_fields
|