Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #12764: Avoid exceeding psycopg1 limits in the views tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b2db1b24c665bb6bc0957ff3b57ffd85814919d3 1 parent 9df7137
@kmtracey kmtracey authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/views/tests/defaults.py
View
4 tests/regressiontests/views/tests/defaults.py
@@ -31,7 +31,7 @@ def test_wrong_type_pk(self):
self.assertEquals(response.status_code, 404)
def test_shortcut_bad_pk(self):
- short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, '4242424242')
+ short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, '42424242')
response = self.client.get(short_url)
self.assertEquals(response.status_code, 404)
@@ -43,7 +43,7 @@ def test_nonint_content_type(self):
def test_bad_content_type(self):
an_author = Author.objects.all()[0]
- short_url = '/views/shortcut/%s/%s/' % (4242424242, an_author.pk)
+ short_url = '/views/shortcut/%s/%s/' % (42424242, an_author.pk)
response = self.client.get(short_url)
self.assertEquals(response.status_code, 404)
Please sign in to comment.
Something went wrong with that request. Please try again.