Re: [sqlalchemy] Closing all sqlalchemy sessions, connections, pools, metadata

2020-03-09 Thread Don Smiley
That's an interesting point. I actually pull it in as an imported class using @as_declarative() class MyClass Forcing an import reload for each initialization made all the difference. Thanks for your help. On Monday, March 9, 2020 at 4:19:31 PM UTC-7, Mike Bayer wrote: > > > > On Mon, Mar 9,

Re: [sqlalchemy] Closing all sqlalchemy sessions, connections, pools, metadata

2020-03-09 Thread Mike Bayer
On Mon, Mar 9, 2020, at 5:40 PM, Don Smiley wrote: > In unit testing with multiple configurations, I am having trouble closing out > everything to go on to the next iteration. For example, the test creates a > class Address. I get the following kind of error: > > ``` > /venv/lib/python3.6/site

[sqlalchemy] Closing all sqlalchemy sessions, connections, pools, metadata

2020-03-09 Thread Don Smiley
In unit testing with multiple configurations, I am having trouble closing out everything to go on to the next iteration. For example, the test creates a class Address. I get the following kind of error: ``` /venv/lib/python3.6/site-packages/SQLAlchemy-1.3.13-py3.6-linux-x86_64.egg/sqlalchemy/ext