Skip to content

Commit

Permalink
feat: adjust unit test for account configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
hiohiohio committed Jan 24, 2024
1 parent cc44ac9 commit b9fee5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/trading/trading_client/test_account_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,16 @@ def test_get_account_configurations(reqmock: Mocker, trading_client: TradingClie
"max_margin_multiplier": "4",
"pdt_check": "entry",
"trade_confirm_email": "all",
"ptp_no_exception_entry": false
"ptp_no_exception_entry": false,
"max_option_trading_level": "1"
}
""",
)

account_configurations = trading_client.get_account_configurations()
assert reqmock.called_once
assert isinstance(account_configurations, AccountConfiguration)
assert account_configurations.max_option_trading_level == "1"


def test_set_account_configurations(reqmock: Mocker, trading_client: TradingClient):
Expand Down

0 comments on commit b9fee5a

Please sign in to comment.