Skip to content

test: cover transformer output format validation#51

Merged
adaamko merged 1 commit into
KRLabsOrg:mainfrom
gaoflow:test-46-transformer-output-format
Jun 24, 2026
Merged

test: cover transformer output format validation#51
adaamko merged 1 commit into
KRLabsOrg:mainfrom
gaoflow:test-46-transformer-output-format

Conversation

@gaoflow

@gaoflow gaoflow commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add transformer detector tests for both supported output formats on predict() and predict_prompt()
  • add a regression test that unsupported transformer output_format values raise a clear ValueError

Notes

Closes #46

Tests

  • .venv/bin/python -m pytest tests/test_inference_pytest.py -q -k output_format
  • .venv/bin/python -m pytest tests/test_inference_pytest.py -q
  • .venv/bin/python -m ruff format --check tests/test_inference_pytest.py
  • .venv/bin/python -m ruff check tests/test_inference_pytest.py

@adaamko adaamko merged commit 72230da into KRLabsOrg:main Jun 24, 2026
2 checks passed
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.

Validate output_format and raise a clear error on invalid values

2 participants