Headless testing

2016-10-12 Thread Nathan
Hi all, Wondering if anyone has an suggestions for headless django testing - any configuration tips or links would be helpful. My site is django 1.8 and we make extensive use of jquery on the frontend. Using phantomjs driver with liveserver test hasn't worked out well. -- You received this

Unit testing in django for django template

2016-10-12 Thread codemaster472
How to Unit testing in django for django template please any one help me??? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googleg

Re: Unit testing in django for django template

2016-10-12 Thread James Schneider
In general, you would request the page and inspect the rendered output. https://docs.djangoproject.com/en/1.10/topics/testing/tools/#testing-responses -James On Wed, Oct 12, 2016 at 12:17 PM, wrote: > How to Unit testing in django for django template > > please any one help me??? > > -- >

Re: Unit testing in django for django template

2016-10-12 Thread ludovic coues
Personally, I use lxml to check the presence of HTML element based on xpath. Here is an exemple of how I do it: from django.core.urlresolvers import reverse from django.test import TestCase from lxml import etree class UserUrlTestCase(TestCase): """ Test for the user app "

Windows users: do the line endings created by startproject/startapp matter?

2016-10-12 Thread Tim Graham
There's an old ticket [0] noting that startproject/app create files with Unix line endings, even on WIndows. My question is whether or not this matters. Some things I thought of: I think version control programs like Git usually normalize line endings anyway. The proposed change only applies

Re: Windows users: do the line endings created by startproject/startapp matter?

2016-10-12 Thread Mike Dewhirst
On 13/10/2016 10:43 AM, Tim Graham wrote: There's an old ticket [0] noting that startproject/app create files with Unix line endings, even on WIndows. My question is whether or not this matters. Some things I thought of: I think version control programs like Git usually normalize line endings

Re: Headless testing

2016-10-12 Thread Avraham Serour
Hi, In Linux you can just use selenium chrome or firefox or anything and set up xfvb for headless, I have no idea if such a thing is possible in windows. In either you can set up a selenium server so the machine running the tests will connect remotely to the machine running the browser, you can e

Re: Headless testing

2016-10-12 Thread Mike Dewhirst
There is also BuildBot which can be programmed to do anything on multiple client/slaves running any OS http://buildbot.net/ On 13/10/2016 1:09 PM, Avraham Serour wrote: Hi, In Linux you can just use selenium chrome or firefox or anything and set up xfvb for headless, I have no idea if such a