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

Code not being executed during tests #49

Open
petrus-jvrensburg opened this issue Apr 22, 2024 · 0 comments
Open

Code not being executed during tests #49

petrus-jvrensburg opened this issue Apr 22, 2024 · 0 comments

Comments

@petrus-jvrensburg
Copy link
Contributor

Currently, it looks like calls to Instructor.Adapter are being mocked here:

Mox.defmock(InstructorTest.MockOpenAI, for: Instructor.Adapter)

That means that Instructor.Adapter itself, and the modules being called from it, are not actually executed during tests.

E.g. If I add an error like tmp = 1/0 to Instructor.Adapters.OpenAI.do_chat_completion and run the tests locally, they pass.

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

No branches or pull requests

1 participant