Source: python-django-rest-hooks Version: 1.6.0-3 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20231212 ftbfs-trixie
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > dh_auto_test -- --system=custom --test-args="cd {build_dir}; {interpreter} > ./runtests.py" > I: pybuild base:310: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build; python3.12 > ./runtests.py > Creating test database for alias 'default'... > Found 14 test(s). > System check identified no issues (0 silenced). > EE.E.E...EEE.. > ====================================================================== > ERROR: test_comment_hook_serializer_method > (rest_hooks.tests.RESTHooksTest.test_comment_hook_serializer_method) > Use custom serialize_hook on the Comment model. > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build/rest_hooks/tests.py", > line 145, in test_comment_hook_serializer_method > self.assertEquals(hook.id, payload['hook']['id']) > ^^^^^^^^^^^^^^^^^ > AttributeError: 'RESTHooksTest' object has no attribute 'assertEquals'. Did > you mean: 'assertEqual'? > > ====================================================================== > ERROR: test_custom_instance_hook > (rest_hooks.tests.RESTHooksTest.test_custom_instance_hook) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/mock/mock.py", line 1346, in patched > return func(*newargs, **newkeywargs) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build/rest_hooks/tests.py", > line 215, in test_custom_instance_hook > self.assertEquals('comment.moderated', payloads[0]['hook']['event']) > ^^^^^^^^^^^^^^^^^ > AttributeError: 'RESTHooksTest' object has no attribute 'assertEquals'. Did > you mean: 'assertEqual'? > > ====================================================================== > ERROR: test_full_cycle_comment_hook > (rest_hooks.tests.RESTHooksTest.test_full_cycle_comment_hook) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/mock/mock.py", line 1346, in patched > return func(*newargs, **newkeywargs) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build/rest_hooks/tests.py", > line 182, in test_full_cycle_comment_hook > self.assertEquals('comment.added', payloads[0]['hook']['event']) > ^^^^^^^^^^^^^^^^^ > AttributeError: 'RESTHooksTest' object has no attribute 'assertEquals'. Did > you mean: 'assertEqual'? > > ====================================================================== > ERROR: test_get_event_actions_config > (rest_hooks.tests.RESTHooksTest.test_get_event_actions_config) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 461, in > inner > return func(*args, **kwargs) > ^^^^^^^^^^^^^^^^^^^^^ > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build/rest_hooks/tests.py", > line 75, in test_get_event_actions_config > self.assertEquals( > ^^^^^^^^^^^^^^^^^ > AttributeError: 'RESTHooksTest' object has no attribute 'assertEquals'. Did > you mean: 'assertEqual'? > > ====================================================================== > ERROR: test_raw_custom_event > (rest_hooks.tests.RESTHooksTest.test_raw_custom_event) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/mock/mock.py", line 1346, in patched > return func(*newargs, **newkeywargs) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build/rest_hooks/tests.py", > line 239, in test_raw_custom_event > self.assertEquals('special.thing', payload['hook']['event']) > ^^^^^^^^^^^^^^^^^ > AttributeError: 'RESTHooksTest' object has no attribute 'assertEquals'. Did > you mean: 'assertEqual'? > > ====================================================================== > ERROR: test_signal_emitted_upon_success > (rest_hooks.tests.RESTHooksTest.test_signal_emitted_upon_success) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build/rest_hooks/tests.py", > line 285, in test_signal_emitted_upon_success > payload['data']['fields']['submit_date'] = ANY > ~~~~~~~~~~~~~~~^^^^^^^^^^ > KeyError: 'fields' > > ====================================================================== > ERROR: test_simple_comment_hook > (rest_hooks.tests.RESTHooksTest.test_simple_comment_hook) > Uses the default serializer. > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build/rest_hooks/tests.py", > line 124, in test_simple_comment_hook > self.assertEquals(hook.id, payload['hook']['id']) > ^^^^^^^^^^^^^^^^^ > AttributeError: 'RESTHooksTest' object has no attribute 'assertEquals'. Did > you mean: 'assertEqual'? > > ---------------------------------------------------------------------- > Ran 14 tests in 6.051s > > FAILED (errors=7) > Destroying test database for alias 'default'... > E: pybuild pybuild:395: test: plugin custom failed with: exit code=7: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-rest-hooks/build; python3.12 > ./runtests.py > I: pybuild base:310: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-rest-hooks/build; python3.11 > ./runtests.py > Creating test database for alias 'default'... > Found 14 test(s). > System check identified no issues (0 silenced). > .............. > ---------------------------------------------------------------------- > Ran 14 tests in 5.976s > > OK > Destroying test database for alias 'default'... > dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" > --system=custom "--test-args=cd {build_dir}; {interpreter} ./runtests.py" > returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2023/12/12/python-django-rest-hooks_1.6.0-3_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.