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

Add unit test for flask serving #562

Merged
merged 6 commits into from
Dec 12, 2023

Conversation

darrylong
Copy link
Member

Description

Added unit tests for serving feature, testing recommend, feedback and evaluate endpoints.

Related Issues

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

@darrylong darrylong requested a review from tqtg December 8, 2023 09:00
@darrylong darrylong self-assigned this Dec 8, 2023
@darrylong
Copy link
Member Author

@tqtg it seems that the same pickle file is not backward compatible with older python versions. Should we do a pre-step to build the pickle file, or will it be better if we have multiple pickle files of different versions for testing purposes?

@tqtg
Copy link
Member

tqtg commented Dec 8, 2023

@darrylong let's not have the pickle files stored in our repo. We can create model during the test setup phase, and use this small dataset to fit the model. We don't need a properly trained model, just need a model to test the APIs.

@darrylong darrylong marked this pull request as ready for review December 11, 2023 04:28
@tqtg
Copy link
Member

tqtg commented Dec 11, 2023

LGTM

@darrylong darrylong merged commit ea8352f into PreferredAI:master Dec 12, 2023
12 checks passed
@darrylong darrylong deleted the serving-unittest branch December 12, 2023 03:48
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.

2 participants