Re: Moving database backends out of the core

2018-11-28 Thread Johannes Hoppe
Hi Shai, Thank you. You make a very good point. That is exactly what I meant. I have written small backends myself to add new features. The problem is that those features rarely make it into the core backend, because those are too static inside Django. Best -Joe On 28. Nov 2018, 00:33 +0100, S

Re: TestCase.setUpTestData in-memory data isolation.

2018-11-28 Thread Adam Johnson
> > Are these the kind of objects you assign during setUpTestData though? > They're not the kind of things *I* assign but I bet somewhere out there, some project does extensively :) What about going through a deprecation period where non-picklable > assignment during setUpTestData raises a deprec

Re: TestCase.setUpTestData in-memory data isolation.

2018-11-28 Thread Josh Smeaton
Our project also suffers extensively with mutating objects assigned from setUp, preventing us from moving most of our tests to setUpTestData. I'll likely begin using your pypi package right away, thanks Simon! Backward compat issues are probably likely - but they'd be in test cases exclusively,

Re: TestCase.setUpTestData in-memory data isolation.

2018-11-28 Thread charettes
Hey Josh, glad the package can help in the mean time! > Is there anyway to determine the pickle-ability of something without just trying to pickle it? I wouldn't be keen on that overhead. Not that I'm aware off but unfortunately. There really shouldn't be much overhead though because the deepco