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

Suggestion: adds unit tests and integrations tests #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FeiRoN23
Copy link

@FeiRoN23 FeiRoN23 commented Apr 6, 2024

Current integration test, makes real api calls attempts to open ai platform using api_key env variable.

Potentially running tests cause api usage with api tokens cost associated, so to remedy for that issue, we can use MockServer to simulate open api response to test and isolate the behavior of the service without calling real api.

Also this can be used as a base for CI/CD implementation for code quality and anti regression approach.

@FeiRoN23 FeiRoN23 force-pushed the test/implement-unit-integration-tests branch from a309c63 to d2e3ef1 Compare April 6, 2024 21:20
@FeiRoN23 FeiRoN23 force-pushed the test/implement-unit-integration-tests branch from d2e3ef1 to 36e00f0 Compare April 6, 2024 21:26
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