Skip to content

Conversation

@xrmx
Copy link
Member

@xrmx xrmx commented Nov 14, 2024

What does this pull request do?

This adds a bunch of integration tests hitting openai. This requires
setting a variable OPENAI_API_KEY in github secrets. Tests themselves
are a copy of the recorded ones asserting values from the response data.

Integration tests are not run by default and can be called with pytest --integration-tests

Then adds unit testing against 1.2.0 baseline. 1.26.0 is required for having usage data with streams but with some
small changes we can keep the baseline as old as 1.2.0.

Related issues

@xrmx xrmx closed this Nov 14, 2024
@xrmx xrmx reopened this Nov 14, 2024
@xrmx xrmx requested a review from trentm November 14, 2024 16:10
xrmx added 2 commits November 14, 2024 17:25
1.26.0 is required for having usage data with streams but with some
small changes we can keep the baseline as old as 1.2.0.
…tests

This adds a bunch of integration tests hitting openai. This requires
setting a variable `OPENAI_API_KEY` in github secrets. Tests themselves
are a copy of the recorded ones asserting values from the response data.

Integration tests are not run by default and can be called with `pytest
--integration-tests`
@xrmx xrmx merged commit dae460d into main Nov 18, 2024
14 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.

4 participants