Re: [Django] #12227: PREPEND_WWW breaks the test client

2021-02-12 Thread Django
#12227: PREPEND_WWW breaks the test client
-+-
 Reporter:  Andy Baker   |Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Testing framework|  Version:  1.1
 Severity:  Normal   |   Resolution:
 Keywords:  test client, | Triage Stage:  Accepted
  redirect, prepend_www  |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * owner:  Sharpek => (none)
 * status:  assigned => new


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.104a3a9847714c9c161ade4550b4ada4%40djangoproject.com.


Re: [Django] #12227: PREPEND_WWW breaks the test client

2015-07-31 Thread Django
#12227: PREPEND_WWW breaks the test client
-+-
 Reporter:  andybak  |Owner:  Sharpek
 Type:  Bug  |   Status:  assigned
Component:  Testing framework|  Version:  1.1
 Severity:  Normal   |   Resolution:
 Keywords:  test client, | Triage Stage:  Accepted
  redirect, prepend_www  |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by jamesbeith):

 I’ve been experiencing this and am using `SERVER_NAME` and `host` as a
 fix. Though as the number of tests I write for the project grows it
 doesn’t seem the most ideal solution.

 {{{
 response = self.client.get('/redirect/', follow=True,
 SERVER_NAME='www.testserver')
 self.assertRedirects(response, '/result/', status_code=301,
 host='www.testserver')
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.b03479d94d6445ea589d3348c9f6a441%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12227: PREPEND_WWW breaks the test client

2014-04-12 Thread Django
#12227: PREPEND_WWW breaks the test client
-+-
 Reporter:  andybak  |Owner:  Sharpek
 Type:  Bug  |   Status:  assigned
Component:  Testing framework|  Version:  1.1
 Severity:  Normal   |   Resolution:
 Keywords:  test client, | Triage Stage:  Accepted
  redirect, prepend_www  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by Sharpek):

 I' going to check this issue.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.ddd80f734ae5392b8ad32a72e7adcb02%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12227: PREPEND_WWW breaks the test client

2014-04-12 Thread Django
#12227: PREPEND_WWW breaks the test client
-+-
 Reporter:  andybak  |Owner:  Sharpek
 Type:  Bug  |   Status:  assigned
Component:  Testing framework|  Version:  1.1
 Severity:  Normal   |   Resolution:
 Keywords:  test client, | Triage Stage:  Accepted
  redirect, prepend_www  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by Sharpek):

 * owner:  nobody => Sharpek
 * status:  new => assigned


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.de21a98eb4210597dcf1fd956a9227fb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12227: PREPEND_WWW breaks the test client

2011-09-09 Thread Django
#12227: PREPEND_WWW breaks the test client
-+-
   Reporter:  andybak|  Owner:  nobody
   Type:  Bug| Status:  new
  Milestone: |  Component:  Testing framework
Version:  1.1|   Severity:  Normal
 Resolution: |   Keywords:  test client,
   Triage Stage:  Accepted   |  redirect, prepend_www
Needs documentation:  0  |  Has patch:  0
Patch needs improvement:  0  |Needs tests:  0
  UI/UX:  0  |  Easy pickings:  0
-+-
Changes (by mlavin):

 * ui_ux:   => 0
 * easy:   => 0


Comment:

 Not sure how to fix but I've added a test case which demonstrates the
 described issue.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12227: PREPEND_WWW breaks the test client

2011-04-01 Thread Django
#12227: PREPEND_WWW breaks the test client
-+-
   Reporter:  andybak|Owner:  nobody
   Type:  Bug|   Status:  new
  Milestone: |Component:  Testing framework
Version:  1.1| Severity:  Normal
 Resolution: | Keywords:  test client,
   Triage Stage:  Accepted   |  redirect, prepend_www
Needs documentation:  0  |Has patch:  0
Patch needs improvement:  0  |  Needs tests:  0
-+-
Changes (by mattmcc):

 * type:   => Bug
 * severity:   => Normal


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12227: PREPEND_WWW breaks the test client

2010-02-04 Thread Django
#12227: PREPEND_WWW breaks the test client
+---
  Reporter:  andybak| Owner:  nobody

Status:  new| Milestone:

 Component:  Testing framework  |   Version:  1.1   

Resolution: |  Keywords:  test client, 
redirect, prepend_www
 Stage:  Accepted   | Has_patch:  0 

Needs_docs:  0  |   Needs_tests:  0 

Needs_better_patch:  0  |  
+---
Changes (by ericholscher):

  * stage:  Unreviewed => Accepted

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12227: PREPEND_WWW breaks the test client

2010-01-07 Thread Django
#12227: PREPEND_WWW breaks the test client
+---
  Reporter:  andybak| Owner:  nobody

Status:  new| Milestone:

 Component:  Testing framework  |   Version:  1.1   

Resolution: |  Keywords:  test client, 
redirect, prepend_www
 Stage:  Unreviewed | Has_patch:  0 

Needs_docs:  0  |   Needs_tests:  0 

Needs_better_patch:  0  |  
+---
Changes (by stavros):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 +1, this behaviour serves no purpose. It only makes testing difficult and
 forces me to never use prepend_www and rather do my redirects at the
 webserver level. Perhaps PREPEND_WWW should be disabled before every test
 automatically, since it's not what testing is supposed to test for?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




[Django] #12227: PREPEND_WWW breaks the test client

2009-11-16 Thread Django
#12227: PREPEND_WWW breaks the test client
+---
 Reporter:  andybak |   Owner:  nobody
   Status:  new |   Milestone:
Component:  Testing framework   | Version:  1.1   
 Keywords:  test client, redirect, prepend_www  |   Stage:  Unreviewed
Has_patch:  0   |  
+---
 With PREPEND_WWW set to true the test client will always give a 301
 status_code:


 {{{
 >>> from django.test.client import Client
 >>> c = Client()
 >>> r = c.get('/admin/', follow=True)
 >>> r.status_code
 301
 >>> r.redirect_chain
 [('http://www.testserver/admin/', 301),
 ('http://www.testserver/admin/', 301)]
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=.