Re: LiveServerTestCase vs StaticLiveServerCase

2014-03-30 Thread Carl Meyer
On 03/30/2014 06:02 AM, Harry Percival wrote: > In that case, maybe the question is: which should be the default? > > Given that, as you say, most people use staticfiles, it feels to me like > the test case in which static files "just work", without having to > remember to run `collectstatic` bef

Re: LiveServerTestCase vs StaticLiveServerCase

2014-03-30 Thread Harry Percival
In that case, maybe the question is: which should be the default? Given that, as you say, most people use staticfiles, it feels to me like the test case in which static files "just work", without having to remember to run `collectstatic` before each test run, would feel like a good default. More

Re: LiveServerTestCase vs StaticLiveServerCase

2014-03-29 Thread Carl Meyer
On 03/29/2014 02:36 PM, Shai Berger wrote: > On Saturday 29 March 2014 19:11:17 Harry Percival wrote: >> >> What I *am* saying is that, in my opinion, there's not much point in >> LiveServerTestCase if it doesn't do static files. So, to keep things >> simple, it would be simpler to remove it, and

Re: LiveServerTestCase vs StaticLiveServerCase

2014-03-29 Thread Shai Berger
On Saturday 29 March 2014 19:11:17 Harry Percival wrote: > > What I *am* saying is that, in my opinion, there's not much point in > LiveServerTestCase if it doesn't do static files. So, to keep things > simple, it would be simpler to remove it, and just have on LiveServer test > class, that lives

Re: LiveServerTestCase vs StaticLiveServerCase

2014-03-29 Thread Harry Percival
Well, neither, really, but, if anything, the latter. - I don't think there's any bugs in StaticLiveServerCase. - I have changed all my tests to use the new class. it wasn't the end of the world. What I *am* saying is that, in my opinion, there's not much point in LiveServerTestCase if it doesn'

Re: LiveServerTestCase vs StaticLiveServerCase

2014-03-29 Thread Ramiro Morales
On Sat, Mar 29, 2014 at 1:26 PM, Harry Percival wrote: > > [...] > > But I just wanted to express the fact that it feels a little > counter-intuitive. I don't know enough to weigh how important it is to > remove a dependency on a contrib app from the testcases framework, but, as a > user, havin

LiveServerTestCase vs StaticLiveServerCase

2014-03-29 Thread Harry Percival
Just updating my book to using the django 1.7 beta. I use LiveServerTestCase a lot. I used to rely on the fact that LiveServerTestCase "magically" serves static files from app folders. I see the default functionality is that this no longer works, but I can get it by switching to StaticLiveS