Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
List of Unit Tests:
To run these tests on your end, use the following code:
cd api
python -m pytest utils/unit_tests/database_test
Note: Without changing your directory to api/, the test does not run correctly because it can't resolve imports in the api.py file. I think this could be due to how we've setup our testing infrastructure. We may want to create a separate folder (outside of api/) for our unit tests (similar to the lab5 directory setup).
Note: This branch merges into feat/db_models as I branched off feat/db_models to create this branch. We should first merge #7 into main which will allow this PR to merge into main normally as well.