pittcsc / PittAPI

An API to easily get data from the University of Pittsburgh
https://pittapi.pittcsc.org
GNU General Public License v2.0
105 stars 30 forks source link

Fix failing tests by mocking requests library #158

Closed Steven-Jarmell closed 1 month ago

Steven-Jarmell commented 2 months ago

The tests for the people functions were all failing due to some strange max recursion depth error.

I'm not sure exactly what was causing this, but ultimately I decided to just mock out the functionality of the requests library in a similar manner to the lab tests.

I got the data for the mock return value manually using postman.

tianyizheng02 commented 1 month ago

Contributes to #166