fedspendingtransparency / usaspending-api

Server application to serve U.S. federal spending data via a RESTful API
https://www.usaspending.gov
Creative Commons Zero v1.0 Universal
310 stars 113 forks source link

[Dev 10748] Fix for psycopg2.errors.InvalidCursorName error while running tests #4051

Closed ayubshahab closed 8 months ago

ayubshahab commented 8 months ago

Description: The newer version of Django was resulting in the psycopg2.errors.InvalidCursorName as certain functionality has been changed in newer versions. Viewing the documentation and stackoverflow links I realized that this is a known issue while upgrading to the latest version of Django. However, the version of Django we were previously using, 3.2.* the minor version is still compatible with python 3.10.13 so reverted back to that and the error resolved itself.

Technical details: The technical details for the knowledge of other developers. Any detailed caveats or specific deployment steps should be outlined here.

Requirements for PR merge:

  1. [ ] Unit & integration tests updated
  2. [ ] API documentation updated
  3. [ ] Necessary PR reviewers:
    • [ ] Backend
    • [ ] Frontend
    • [ ] Operations
    • [ ] Domain Expert
  4. [ ] Matview impact assessment completed
  5. [ ] Frontend impact assessment completed
  6. [ ] Data validation completed
  7. [ ] Appropriate Operations ticket(s) created
  8. [ ] Jira Ticket DEV-123:
    • [ ] Link to this Pull-Request
    • [ ] Performance evaluation of affected (API | Script | Download)
    • [ ] Before / After data comparison

Area for explaining above N/A when needed: