Skip to content

feat(sdk-py): ExchangeClient tests + ISO8601 validation#11

Merged
sirambrosio merged 4 commits intomainfrom
feat/python-exchange-tests-and-validation
Apr 20, 2026
Merged

feat(sdk-py): ExchangeClient tests + ISO8601 validation#11
sirambrosio merged 4 commits intomainfrom
feat/python-exchange-tests-and-validation

Conversation

@sirambrosio
Copy link
Copy Markdown
Contributor

Changes

  • GAP C: tests/test_exchange.py — pytest suite covering submit_records success, read_records success + filters + empty list, token-required enforcement, and expired-token BSPApiError propagation
  • GAP D: bsp_sdk/biorecord.pyset_collection_time() now validates via datetime.fromisoformat() (with Z→+00:00 normalization for Python < 3.11); raises ValueError with clear message on invalid input

Test plan

  • pytest tests/test_exchange.py passes
  • BioRecordBuilder.set_collection_time("not-a-date") raises ValueError
  • Existing tests/test_biorecord.py still passes (no regression)

sirambrosio and others added 4 commits April 20, 2026 15:51
__version__ = '2.1.0' was defined at module level but omitted from
__all__, meaning `from bsp_sdk import *` would not expose it and tools
like `bsp_sdk.__version__` checks via __all__ introspection would miss
it. Add it as the first entry under a 'Package metadata' comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- BEOClient.list_beos(limit, offset): GET /api/beo with pagination
- README: added list_beos and destroy() usage examples; updated method table
- pyproject.toml: added "Development Status :: 4 - Beta" classifier

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…lection_time

- tests/test_exchange.py: covers submit_records/read_records success, empty/over-limit records, token required, expired token error
- bsp_sdk/biorecord.py: set_collection_time() validates via datetime.fromisoformat(), raises ValueError with clear message on invalid input
@sirambrosio sirambrosio merged commit ee26166 into main Apr 20, 2026
@sirambrosio sirambrosio deleted the feat/python-exchange-tests-and-validation branch April 20, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant