Skip to content

Conversation

@Hartorn
Copy link
Member

@Hartorn Hartorn commented Oct 1, 2025

No description provided.

…g behavior

- Add parameterized test for Dataset.create_chat_test_case to ensure extra fields
  (e.g., id/timestamps) from imported ChatTestCase objects are not forwarded.
- Cover both inputs:
  - plain ChatTestCase constructed in-code
  - imported ChatTestCase via from_dict with id/timestamps
- Document SimpleNamespace usage for lightweight client wiring.
@Hartorn Hartorn changed the title test: parametrize and document Dataset.create_chat_test_case filterin… fix: dataset.create_test_case does not filter out attributes Oct 1, 2025
@Hartorn Hartorn self-assigned this Oct 1, 2025
- Send only allowed fields (messages, demo_output, tags, checks) plus dataset_id
  instead of forwarding the full ChatTestCase dict (which included id/timestamps).
- Prevents TypeError when creating test cases from objects copied across environments.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2025

@Hartorn Hartorn enabled auto-merge (squash) October 1, 2025 12:03
@Hartorn Hartorn merged commit 2cd06af into main Oct 1, 2025
34 of 41 checks passed
@Hartorn Hartorn deleted the fix-issue-97 branch October 1, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants