-
Notifications
You must be signed in to change notification settings - Fork 55
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
Write Unit Tests for backend #74
Comments
@yashpandey06 , I would like to work on this issue can you please assign this to me ? |
@Jibesh10101011 what would the tests look like? tests such as adding/removing images and confirming them from db are fine (or via routes which return back list of images). But i dont think you can test everything (tags returned by an image for example or clusters formed) since it depends on the models accuracy and the model we are using. |
@bassamadnan I agree that we can test basic CRUD operations like adding/removing images and confirming them via routes or the database. However, testing aspects like tags or clusters is challenging as they depend on the model's accuracy and the specific model we’re using. For those, we might need to rely on manual validation or mock outputs for consistency in tests. |
Agreed , we can move with testing CRUD operations which are independent of the model implementation. |
Tasks
Set Up Testing Framework:
pytest
andpytest-flask
for testing the application.Write Unit Tests for Routes:
Test Dependencies:
unittest.mock
orpytest-mock
.Test Application Context:
Organize Tests:
tests/
directory.Document Test Instructions:
Acceptance Criteria
pytest
.References
The text was updated successfully, but these errors were encountered: