Opened 7 years ago

Closed 7 years ago

Last modified 7 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: master
Severity: Keywords: postgresql blocker
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Traceback (most recent call last):
  File "/home/lrekucki/django/django-gh/tests/regressiontests/generic_views/", line 209, in test_update_get_object
    res = self.client.get('/edit/author/update/')
  File "/home/lrekucki/django/django-gh/django/test/", line 445, in get
    response = super(Client, self).get(path, data=data, **extra)
  File "/home/lrekucki/django/django-gh/django/test/", line 229, in get
    return self.request(**r)
  File "/home/lrekucki/django/django-gh/django/core/handlers/", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/lrekucki/django/django-gh/django/views/generic/", line 47, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/lrekucki/django/django-gh/django/views/generic/", line 68, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/lrekucki/django/django-gh/django/views/generic/", line 195, in get
    self.object = self.get_object()
  File "/home/lrekucki/django/django-gh/tests/regressiontests/generic_views/", line 121, in get_object
    return Author.objects.get(pk=1)
  File "/home/lrekucki/django/django-gh/django/db/models/", line 132, in get
    return self.get_query_set().get(*args, **kwargs)
  File "/home/lrekucki/django/django-gh/django/db/models/", 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 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Łukasz Rekucki

Attachment: patch15544.diff added

comment:1 Changed 7 years ago by Béres Botond

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

comment:2 Changed 7 years ago by Russell Keith-Magee

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 Changed 7 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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