Too-Hot-To-Hindle / Social_Distribution_Media

A social network platform
https://social-distribution-media.herokuapp.com/
Apache License 2.0
0 stars 1 forks source link

86 pagination #94

Closed StevenJiao closed 1 year ago

StevenJiao commented 1 year ago

Things finished in this PR:

  1. Pagination for endpoints discussed in #86.
  2. Postman tests for pagination endpoints (will be labelled as 'pagination' to their respective GET request).
  3. Fixed(?) unit testing for Django (changes to settings.py for test database, a test runner configured to our test datbase) + added a new test database that is a copy of our prod database (data fresh as of 03-17 @ 8pm?).
  4. Added test cases for pagination for all endpoints I worked on.
  5. Added test cases for basic auth**

**Something to note, one unit test fails right now due to our basic auth not working (in the views_tests.py)..

to test just the views that I worked on, use python manage.py test tests.test_views

StevenJiao commented 1 year ago

also didn't realize that django tests actually deletes entries made into the database during test cleanup.. so we might not even need a 'test' db and pay for it but I guess is good practice if the TA ever asks