From d64079f583377323d0a10906aa88140d3f1182fb Mon Sep 17 00:00:00 2001 From: Justin Ko Date: Sat, 15 Aug 2026 15:31:00 +0900 Subject: [PATCH] test(cli): assert missing owner side effect --- tests/test_portfolio_uuid.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_portfolio_uuid.py b/tests/test_portfolio_uuid.py index be92879..76ecd94 100644 --- a/tests/test_portfolio_uuid.py +++ b/tests/test_portfolio_uuid.py @@ -438,12 +438,10 @@ def test_create_without_user_fails() -> None: result = runner.invoke( runner.app, ["portfolio", "create", "MY_PORT", "--asset-id", _TEST_ASSET_ID, "--strategy-id", "set-1", "--force"], - color=False, - terminal_width=200, ) assert result.exit_code == 2 - assert "Missing option '--user'" in result.output + assert repo._portfolios == [] def test_create_with_unknown_user_fails() -> None: