do you want to test on development server??
On Sat, Jul 7, 2018 at 1:17 PM, prakash sharma <prakashsharmac...@gmail.com> wrote: > Hi there, > I am facing issue that my django server is not started . > I want to run the pytest-django for test cases without manual runserver. > > Here is my test file: > > import requests > > def test_demo(): > response = requests.get('http://0.0.0.0:8000/' + "demo") > assert (response.status_code == 200) > > > > Here is the cmd: > pytest .tests/test_demo.py --ds=my_project.settings > > > > I am getting : > Failed to establish a new connection: [Errno 111] Connection refused > > > Is there is a way that my django server will start automatically with > pytest. > > -- > 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...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/2c166097-9635-4dd0-828c-5b1f3006cf1e%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/2c166097-9635-4dd0-828c-5b1f3006cf1e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHfh8PT4-0XPerJJJfyi52peyxhyKQ1P_HRZurWzKRCC0zcQ0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.