[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GMG-Devel] Fixing SQLAlchemy session issue in test_collection_selection

From: Ben Sturmfels
Subject: [GMG-Devel] Fixing SQLAlchemy session issue in test_collection_selection
Date: Thu, 19 Sep 2019 19:35:30 +1000
User-agent: mu4e 1.2.0; emacs 26.3

Hi Folks,

I'd love a hand fixing test_collection_selection() if anyone was able to
lend some SQLAlchemy experience. On current master, if I run:


This fails deep in some templating code run by
self.test_app.get('/submit/') on The issue
appears to in the rendering of the collection select box where the

If I use "./ --pdb", and try to look at "obj", the current
collection being rendered, I get:

sqlalchemy.orm.exc.DetachedInstanceError: Instance <Collection at 
0x7f770332feb8> is not bound to a Session; attribute refresh operation cannot 
proceed (Background on this error at:

So I gather the Collection that was created by fixture_add_collection()
is trying to lazy load itself, but no longer has a reference to the
database. Any ideas why this may be?


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]