Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#15544 closed (fixed)

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

Reported by: lrekucki 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 lrekucki 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by lrekucki

comment:1 Changed 5 years ago by bberes

  • Component changed from Uncategorized to Generic views
  • Has patch set
  • Keywords postgresql blocker added
  • milestone set to 1.3
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 5 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

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 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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