UNLV-CS472-672 / 2024-S-GROUP5-Munch

The Munch app is a social platform where users create profiles by selecting preferred foods.
1 stars 11 forks source link

Add unit tests for bookmark routes #85

Closed tadakane closed 3 months ago

tadakane commented 3 months ago

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

How to Test

  1. 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.
  2. Also, make sure you have the emulator for Firebase running or this won't work.
  3. Now, simply run run_tests.py found in the backend directory and see the coverage for bookmark_routes.

Checklist