Skip to content

Add postprocessor slot selection to AskCustom#469

Merged
werk24 merged 1 commit into
mainfrom
codex/add-postprocessor_slot-attribute-to-askcustom
Sep 4, 2025
Merged

Add postprocessor slot selection to AskCustom#469
werk24 merged 1 commit into
mainfrom
codex/add-postprocessor_slot-attribute-to-askcustom

Conversation

@jmtts
Copy link
Copy Markdown
Collaborator

@jmtts jmtts commented Sep 4, 2025

Summary

  • add PostprocessorSlot enum for available postprocessor systems
  • allow AskCustom to specify postprocessor_slot
  • cover new attribute with unit tests

Testing

  • python -m pip install -r requirements.txt
  • pytest

https://chatgpt.com/codex/tasks/task_e_68b9808975c483329888659d7a4256b1

@werk24 werk24 merged commit b337a41 into main Sep 4, 2025
6 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment thread tests/test_ask_custom.py
Comment on lines +16 to +17
def test_postprocessor_slot_invalid_value():
with pytest.raises(ValueError):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Expect Pydantic ValidationError for invalid enum input

The invalid enum case in test_postprocessor_slot_invalid_value asserts that constructing AskCustom with a bad value raises ValueError, but AskCustom is a BaseModel and Pydantic emits a ValidationError when the enum check fails. As written the test will always fail even though the model behaves correctly. Please assert pytest.raises(ValidationError) (or have the model re‑raise) so the test matches the actual API behavior.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants