Re: [sqlalchemy] replicating/triggering a session connection issue for testing?

2017-09-01 Thread Jonathan Vanasco
thank you kindly, mike! On Friday, September 1, 2017 at 10:51:16 AM UTC-4, Mike Bayer wrote: > > for simulating connection problems I use mock heavily.If you look > at test/engine/test_reconnect.py you can see there's a whole MockDBAPI > that can be instructed to "expode" in a specific way.

Re: [sqlalchemy] replicating/triggering a session connection issue for testing?

2017-09-01 Thread Mike Bayer
for simulating connection problems I use mock heavily.If you look at test/engine/test_reconnect.py you can see there's a whole MockDBAPI that can be instructed to "expode" in a specific way. On Thu, Aug 31, 2017 at 9:30 PM, Jonathan Vanasco wrote: > I discovered an

[sqlalchemy] replicating/triggering a session connection issue for testing?

2017-08-31 Thread Jonathan Vanasco
I discovered an edge-case in one of our apps today. A form got pummeled by a botnet which was going through a list of compromised account data for hits (e.g. credentials that match haveibeenpwned.com). That triggered a lot of internal metrics logging, which eventually a dedicated logging