Creating test database for alias 'default'... ..............POST hook 'rejecting' tried to reject transaction: TRYING_TO_REJECT - POST hook should not reject .POST hook 'failing_hook' failed with error: POST hook failed Traceback (most recent call last): File "/home/cursorai/projects/django-wallet-utils/src/wallet_utils/hooks.py", line 291, in execute_post_hooks hook.callback(context) File "/home/cursorai/projects/django-wallet-utils/tests/test_hooks.py", line 381, in failing_hook raise ValueError("POST hook failed") ValueError: POST hook failed .POST hook 'failing' failed with error: Failed Traceback (most recent call last): File "/home/cursorai/projects/django-wallet-utils/src/wallet_utils/hooks.py", line 291, in execute_post_hooks hook.callback(context) File "/home/cursorai/projects/django-wallet-utils/tests/test_hooks.py", line 444, in failing_hook raise ValueError("Failed") ValueError: Failed ......PRE hook 'failing_hook' failed with error: Something went wrong Traceback (most recent call last): File "/home/cursorai/projects/django-wallet-utils/src/wallet_utils/hooks.py", line 246, in execute_pre_hooks result = hook.callback(context) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/cursorai/projects/django-wallet-utils/tests/test_hooks.py", line 285, in failing_hook raise ValueError("Something went wrong") ValueError: Something went wrong .............POST hook 'failing_post' failed with error: POST hook failed Traceback (most recent call last): File "/home/cursorai/projects/django-wallet-utils/src/wallet_utils/hooks.py", line 291, in execute_post_hooks hook.callback(context) File "/home/cursorai/projects/django-wallet-utils/tests/test_hooks_integration.py", line 167, in failing_post_hook raise ValueError("POST hook failed") ValueError: POST hook failed .............POST hook 'fail' failed with error: POST failed Traceback (most recent call last): File "/home/cursorai/projects/django-wallet-utils/src/wallet_utils/hooks.py", line 291, in execute_post_hooks hook.callback(context) File "/home/cursorai/projects/django-wallet-utils/tests/test_hooks_integration.py", line 625, in failing_post raise ValueError("POST failed") ValueError: POST failed ...POST hook 'notify_failed' failed with error: Failed to send notification Traceback (most recent call last): File "/home/cursorai/projects/django-wallet-utils/src/wallet_utils/hooks.py", line 291, in execute_post_hooks hook.callback(context) File "/home/cursorai/projects/django-wallet-utils/tests/test_hooks_integration.py", line 462, in failing_post_hook raise ValueError("Failed to send notification") ValueError: Failed to send notification ............................................../home/cursorai/projects/django-wallet-utils/venv/lib/python3.12/site-packages/django/db/models/base.py:368: RuntimeWarning: Model 'tests.customtransaction' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) ............................................................................../home/cursorai/projects/django-wallet-utils/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField WalletTransaction.cdate received a naive datetime (2025-12-22 06:41:52.100561) while time zone support is active. warnings.warn( /home/cursorai/projects/django-wallet-utils/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField WalletTransaction.cdate received a naive datetime (2025-12-22 06:42:52.100561) while time zone support is active. warnings.warn( ./home/cursorai/projects/django-wallet-utils/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField WalletTransaction.cdate received a naive datetime (2025-12-21 06:42:52.142096) while time zone support is active. warnings.warn( /home/cursorai/projects/django-wallet-utils/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField WalletTransaction.cdate received a naive datetime (2025-12-22 06:42:52.142096) while time zone support is active. warnings.warn( ........... ---------------------------------------------------------------------- Ran 187 tests in 1.475s OK Destroying test database for alias 'default'... Found 187 test(s). System check identified no issues (0 silenced). EXIT_CODE: 0