Fix test failures: update to new AddDependencyParams field names

- Update tests to use issue_id/depends_on_id instead of from_id/to_id
- Fix test_client_lazy_initialization to mock create_bd_client instead of BdClient
- Add workspace setup for lazy initialization test
- Fixes 2 test failures (now 123 passing, down from 121)

Amp-Thread-ID: https://ampcode.com/threads/T-71b3ce65-87cb-451a-a30d-162d76d92f9c
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Steve Yegge
2025-11-07 19:07:49 -08:00
parent 9eab271010
commit 0e8936bf61
4 changed files with 63 additions and 25 deletions

View File

@@ -281,8 +281,8 @@ async def test_ready_work(bd_client):
# Add blocking dependency
await bd_client.add_dependency(
AddDependencyParams(
from_id=blocked_issue.id,
to_id=blocking_issue.id,
issue_id=blocked_issue.id,
depends_on_id=blocking_issue.id,
dep_type="blocks",
)
)