These unit tests include testing for both bookmarking posts and recipes, adding and removing a bookmark.
Also tests for invalid requests.
Removes feed routes from the backend
Portions of this code that utilized AI generation
None
Screenshots
Coverage for bookmark_routes is at 100%
How to Test
Before running the test script, remember to comment out middleware in server.py. There is no real need for authentication in unit tests that deal with mock data. This can be achieved by simply commenting out @app.before_request in server.py, which is on line 45 at the time of writing this PR.
Also, make sure you have the emulator for Firebase running or this won't work.
Now, simply run run_tests.py found in the backend directory and see the coverage for bookmark_routes.
Checklist
[x] I have added/updated relevant documentation, and I have followed the coding style guidelines.
[x] I have added/updated tests, and I have run the test suite and all tests pass.
[x] I have checked for any potential conflicts with other branches and fixed any merge conflicts.
This PR also fixes #86
Description / Changes Made
Portions of this code that utilized AI generation
None
Screenshots
Coverage for bookmark_routes is at 100%![image](https://github.com/UNLV-CS472-672/2024-S-GROUP5-Munch/assets/101149669/cf5f333e-8035-409c-a5e3-434d25278b54)
How to Test
Checklist