Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#15544 closed (fixed)

test_update_get_object (regressiontests.generic_views.edit.UpdateViewTests) fails on PostgreSQL

Reported by: Łukasz Rekucki Owned by: nobody
Component: Generic views Version: dev
Severity: Keywords: postgresql blocker
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Traceback (most recent call last):
  File "/home/lrekucki/django/django-gh/tests/regressiontests/generic_views/edit.py", line 209, in test_update_get_object
    res = self.client.get('/edit/author/update/')
  File "/home/lrekucki/django/django-gh/django/test/client.py", line 445, in get
    response = super(Client, self).get(path, data=data, **extra)
  File "/home/lrekucki/django/django-gh/django/test/client.py", line 229, in get
    return self.request(**r)
  File "/home/lrekucki/django/django-gh/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/lrekucki/django/django-gh/django/views/generic/base.py", line 47, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/lrekucki/django/django-gh/django/views/generic/base.py", line 68, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/lrekucki/django/django-gh/django/views/generic/edit.py", line 195, in get
    self.object = self.get_object()
  File "/home/lrekucki/django/django-gh/tests/regressiontests/generic_views/views.py", line 121, in get_object
    return Author.objects.get(pk=1)
  File "/home/lrekucki/django/django-gh/django/db/models/manager.py", line 132, in get
    return self.get_query_set().get(*args, **kwargs)
  File "/home/lrekucki/django/django-gh/django/db/models/query.py", line 348, in get
    raise self.model.DoesNotExist("%s matching query does not exist."
DoesNotExist: Author matching query does not exist.

Attachments (1)

patch15544.diff (499 bytes ) - added by Łukasz Rekucki 13 years ago.

Download all attachments as: .zip

Change History (4)

by Łukasz Rekucki, 13 years ago

Attachment: patch15544.diff added

comment:1 by Béres Botond, 13 years ago

Component: UncategorizedGeneric views
Has patch: set
Keywords: postgresql blocker added
milestone: 1.3
Triage Stage: UnreviewedAccepted

comment:2 by Russell Keith-Magee, 13 years ago

Resolution: fixed
Status: newclosed

In [15742]:

Fixed #15544 -- Corrected a test failure in the generic views tests that depended on primary key allocation. Thanks to Łukasz Rekucki for the report.

comment:3 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top