Package: src:python-django-rest-hooks
Version: 1.6.0-3
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12
[...]
336s autopkgtest [18:40:33]: test upstream: [-----------------------
336s Creating test database for alias 'default'...
337s Found 14 test(s).
337s System check identified no issues (0 silenced).
340s EE.E.E...EEE..
340s ======================================================================
340s ERROR: test_comment_hook_serializer_method
(rest_hooks.tests.RESTHooksTest.test_comment_hook_serializer_method)
340s Use custom serialize_hook on the Comment model.
340s ----------------------------------------------------------------------
340s Traceback (most recent call last):
340s File "/usr/lib/python3/dist-packages/rest_hooks/tests.py", line
145, in test_comment_hook_serializer_method
340s self.assertEquals(hook.id, payload['hook']['id'])
340s ^^^^^^^^^^^^^^^^^
340s AttributeError: 'RESTHooksTest' object has no attribute
'assertEquals'. Did you mean: 'assertEqual'?
340s
340s ======================================================================
340s ERROR: test_custom_instance_hook
(rest_hooks.tests.RESTHooksTest.test_custom_instance_hook)
340s ----------------------------------------------------------------------
340s Traceback (most recent call last):
340s File "/usr/lib/python3/dist-packages/mock/mock.py", line 1346, in
patched
340s return func(*newargs, **newkeywargs)
340s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
340s File "/usr/lib/python3/dist-packages/rest_hooks/tests.py", line
215, in test_custom_instance_hook
340s self.assertEquals('comment.moderated',
payloads[0]['hook']['event'])
340s ^^^^^^^^^^^^^^^^^
340s AttributeError: 'RESTHooksTest' object has no attribute
'assertEquals'. Did you mean: 'assertEqual'?
340s
340s ======================================================================
340s ERROR: test_full_cycle_comment_hook
(rest_hooks.tests.RESTHooksTest.test_full_cycle_comment_hook)
340s ----------------------------------------------------------------------
340s Traceback (most recent call last):
340s File "/usr/lib/python3/dist-packages/mock/mock.py", line 1346, in
patched
340s return func(*newargs, **newkeywargs)
340s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
340s File "/usr/lib/python3/dist-packages/rest_hooks/tests.py", line
182, in test_full_cycle_comment_hook
340s self.assertEquals('comment.added', payloads[0]['hook']['event'])
340s ^^^^^^^^^^^^^^^^^
340s AttributeError: 'RESTHooksTest' object has no attribute
'assertEquals'. Did you mean: 'assertEqual'?
340s
340s ======================================================================
340s ERROR: test_get_event_actions_config
(rest_hooks.tests.RESTHooksTest.test_get_event_actions_config)
340s ----------------------------------------------------------------------
340s Traceback (most recent call last):
340s File "/usr/lib/python3/dist-packages/django/test/utils.py", line
461, in inner
340s return func(*args, **kwargs)
340s ^^^^^^^^^^^^^^^^^^^^^
340s File "/usr/lib/python3/dist-packages/rest_hooks/tests.py", line
75, in test_get_event_actions_config
340s self.assertEquals(
340s ^^^^^^^^^^^^^^^^^
340s AttributeError: 'RESTHooksTest' object has no attribute
'assertEquals'. Did you mean: 'assertEqual'?
340s
340s ======================================================================
340s ERROR: test_raw_custom_event
(rest_hooks.tests.RESTHooksTest.test_raw_custom_event)
340s ----------------------------------------------------------------------
340s Traceback (most recent call last):
340s File "/usr/lib/python3/dist-packages/mock/mock.py", line 1346, in
patched
340s return func(*newargs, **newkeywargs)
340s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
340s File "/usr/lib/python3/dist-packages/rest_hooks/tests.py", line
239, in test_raw_custom_event
340s self.assertEquals('special.thing', payload['hook']['event'])
340s ^^^^^^^^^^^^^^^^^
340s AttributeError: 'RESTHooksTest' object has no attribute
'assertEquals'. Did you mean: 'assertEqual'?
340s
340s ======================================================================
340s ERROR: test_signal_emitted_upon_success
(rest_hooks.tests.RESTHooksTest.test_signal_emitted_upon_success)
340s ----------------------------------------------------------------------
340s Traceback (most recent call last):
340s File "/usr/lib/python3/dist-packages/rest_hooks/tests.py", line
285, in test_signal_emitted_upon_success
340s payload['data']['fields']['submit_date'] = ANY
340s ~~~~~~~~~~~~~~~^^^^^^^^^^
340s KeyError: 'fields'
340s
340s ======================================================================
340s ERROR: test_simple_comment_hook
(rest_hooks.tests.RESTHooksTest.test_simple_comment_hook)
340s Uses the default serializer.
340s ----------------------------------------------------------------------
340s Traceback (most recent call last):
340s File "/usr/lib/python3/dist-packages/rest_hooks/tests.py", line
124, in test_simple_comment_hook
340s self.assertEquals(hook.id, payload['hook']['id'])
340s ^^^^^^^^^^^^^^^^^
340s AttributeError: 'RESTHooksTest' object has no attribute
'assertEquals'. Did you mean: 'assertEqual'?
340s
340s ----------------------------------------------------------------------
340s Ran 14 tests in 3.229s
340s
340s FAILED (errors=7)