diff --git a/fusion_accounting_ai/tests/test_data_adapters.py b/fusion_accounting_ai/tests/test_data_adapters.py index f07d346c..0241cbcd 100644 --- a/fusion_accounting_ai/tests/test_data_adapters.py +++ b/fusion_accounting_ai/tests/test_data_adapters.py @@ -140,7 +140,11 @@ class TestFollowupAdapter(TransactionCase): @tagged('post_install', '-at_install') class TestAssetsAdapter(TransactionCase): - def test_list_assets_returns_list(self): + def test_list_assets_returns_dict_with_assets(self): + # Phase 3 (fusion_accounting_assets) wired list_assets to return + # {count, total, assets} — consistent with bank_rec.list_unreconciled etc. adapter = get_adapter(self.env, 'assets') rows = adapter.list_assets() - self.assertIsInstance(rows, list) + self.assertIsInstance(rows, dict) + self.assertIn('assets', rows) + self.assertIsInstance(rows['assets'], list)