Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

test(e2e): move openai client to fixture #953

Merged

Conversation

alekst23
Copy link
Contributor

Description

Test discovery in IDE can fail due to code that runs on dependency resolution. This code makes web requests to retrieve access tokens, but can fail due to a number of reasons. As a result, test discovery will fail and the IDE will not show correct information about your test functions, and will have many errors in the test Output log, making debugging other issues more difficult.

CHANGES

This PR moves OpenAI client into a fixture that will only run once for each module. This will prevent the IDE from throwing errors on discovery.

@alekst23 alekst23 requested a review from a team as a code owner August 27, 2024 20:50
@alekst23 alekst23 linked an issue Aug 27, 2024 that may be closed by this pull request
Copy link

netlify bot commented Aug 27, 2024

Deploy Preview for leapfrogai-docs canceled.

Name Link
🔨 Latest commit bdd76f1
🔍 Latest deploy log https://app.netlify.com/sites/leapfrogai-docs/deploys/66ce3c0d2053990008288646

Copy link
Contributor

@jalling97 jalling97 left a comment

Choose a reason for hiding this comment

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

Just needs a label added and it looks good!

@alekst23 alekst23 added bug Something isn't working tech-debt Not a feature, but still necessary labels Aug 28, 2024
@gphorvath gphorvath added this to the EVERGREEN milestone Aug 28, 2024
@alekst23 alekst23 merged commit f9530ec into main Aug 30, 2024
30 of 31 checks passed
@alekst23 alekst23 deleted the 656-choretests-e2e-tests-should-use-a-fixture-for-openai-client branch August 30, 2024 17:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working tech-debt Not a feature, but still necessary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore(tests): e2e tests should use a fixture for OpenAI client
3 participants