SURFscz / SBS

Samenwerking Beheer Systeem ↣ Collaboration Management System
Apache License 2.0
3 stars 2 forks source link

SQLAlchemy warning during test #1458

Closed baszoetekouw closed 3 weeks ago

baszoetekouw commented 4 weeks ago

Is there an easy way to fix these?

test/api/test_service_aups.py::TestServiceAup::test_accept
  /Users/bas/Documents/Repositories/SBS/server/api/invitation.py:109: SAWarning: Object of type <OrganisationAup> not in session, add operation along 'Organisation.organisation_aups' will not proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation.)
    db.session.merge(organisation_aup)
oharsta commented 3 weeks ago

All the db.session.merge warnings have been resolved in https://github.com/SURFscz/SBS/commit/cfdfedd66bd88281ae0d82c270f1a28fb68be2be. The only warning left is

=============================== warnings summary ===============================
test/api/test_collaboration.py::TestCollaboration::test_api_call_with_logo_url
  /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/responses/__init__.py:607: DeprecationWarning: stream argument is deprecated. Use stream parameter in request directly
baszoetekouw commented 2 weeks ago

confirmed