-
[OPIK-5908] [SDK] refactor: TestSuite API improvements (#6278)
发布于
2026-04-15 09:44:11 +00:00 - [OPIK-5908] [SDK] refactor: TestSuite API improvements
- Add items_count property to TestSuite (mirrors Dataset.dataset_items_count)
- Rename update() -> update_test_settings() for global assertions/policy
- Rename update_items() -> update() for item updates (matches Dataset.update)
- Remove tag update from update_test_settings (not available on datasets)
- Add missing properties to TestSuiteVersion: version_hash, tags,
items_added, items_modified, items_deleted, created_by
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
- style: formatting fixes in e2e test file
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
- fix: rename suite.update() to suite.update_test_settings() in OPIK-5815 e2e test
Missed during merge conflict resolution.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
- test(python-sdk): use ttl_seconds=1 instead of mocking monotonic in pairing tests
return_value=0.0 for monotonic created an infinite loop when mocks
broke (0.0 < 300 is always true). Using ttl_seconds=1 with real
monotonic bounds the worst case to 1 second without any mock.Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
下载附件