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

Fixing AI test cases. #14627

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Fixing AI test cases. #14627

merged 1 commit into from
Sep 23, 2024

Conversation

mike12345567
Copy link
Collaborator

Description

As title - fixing a test case which was failing in server/src/automations/tests/openai.spec.ts

@mike12345567 mike12345567 self-assigned this Sep 23, 2024
@mike12345567 mike12345567 requested a review from a team as a code owner September 23, 2024 12:00
@mike12345567 mike12345567 requested review from adrinr and removed request for a team September 23, 2024 12:00
@github-actions github-actions bot added the firestorm Data/Infra/Revenue Team label Sep 23, 2024
Comment on lines +132 to +133
// init does not appear to be called currently
// expect(llmInstance.init).toHaveBeenCalled()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Because forCurrentTenant is mocked, which usually calls it.

Copy link
Collaborator

@samwho samwho left a comment

Choose a reason for hiding this comment

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

Have I ever mentioned that I hate mocks?

@mike12345567 mike12345567 merged commit f24806f into master Sep 23, 2024
12 checks passed
@mike12345567 mike12345567 deleted the fix/ai-test-failure branch September 23, 2024 12:14
@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2024
@mike12345567
Copy link
Collaborator Author

Have I ever mentioned that I hate mocks?

Agreed - I'd like to see this test through the new automation framework, if we must mock I think we can just mock the anthropic/sdk and thats it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants