Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add Python test infrastructure and OpenAI wrapper tests #478

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link

Add test infrastructure and unit tests to verify wrap_openai async functionality and type handling.

Fixes user report about async OpenAI wrapper type issues.

Changes:

  • Add py-test target to Makefile
  • Create initial test infrastructure
  • Add tests for wrap_openai sync/async functionality
  • Verify proper type handling for OpenAI responses

Link to Devin run: https://app.devin.ai/sessions/211194fd79ad4504b3518df6c394b00f

devin-ai-integration bot and others added 4 commits December 11, 2024 04:56
- Add py-test target to Makefile
- Create initial test infrastructure
- Add tests for wrap_openai sync/async functionality
- Verify proper type handling for OpenAI responses

Co-Authored-By: [email protected] <[email protected]>
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

@ibolmo ibolmo self-assigned this Dec 12, 2024
api_key="sk-test", base_url="https://api.openai.com/v1/", default_headers={"OpenAI-Version": "2020-10-01"}
)
wrapped = wrap_openai(async_client)
reveal_type(wrapped) # type: ignore # Expected type: openai.AsyncOpenAI
Copy link
Contributor

Choose a reason for hiding this comment

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

is this actually testing anything? I want the unit test not a third party tool testing

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