Opened 6 years ago

Closed 6 years ago

Last modified 5 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:

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 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by Łukasz Rekucki

Attachment: patch15544.diff added

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

Component: UncategorizedGeneric views
Has patch: set
Keywords: postgresql blocker added
milestone: 1.3
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 6 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 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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