Creating test database for alias 'default'... ...............F......F................./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-15 02:54:12.940041) 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-15 02:55:12.940041) 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-14 02:55:12.974235) 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-15 02:55:12.974235) while time zone support is active. warnings.warn( ........... ====================================================================== FAIL: test_register_custom_transaction_type (tests.test_transaction_types.CustomTransactionTypeTests.test_register_custom_transaction_type) Test registering a custom transaction type. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cursorai/projects/django-wallet-utils/tests/test_transaction_types.py", line 231, in test_register_custom_transaction_type self.assertIn("custom-reward", TRANSACTION_TYPES) AssertionError: 'custom-reward' not found in {'wallet-deposit': 1000, 'wallet-deposit-cancel': 1001, 'wallet-transfer': 1002, 'wallet-withdraw': 1003, 'wallet-withdraw-refund': 1004, 'wallet-adjust': 1005, 'wallet-topup': 1006, 'wallet-deduct': 1007, 'package-activation': 2000, 'package-activation-cancel': 2001, 'package-upgrade': 2002, 'package-upgrade-cancel': 2003, 'package-renewal': 2004, 'package-renewal-cancel': 2005, 'package-expiry-refund': 2006, 'commission-distribution': 3000, 'commission-distribution-reverse': 3001, 'roi-distribution': 3100, 'roi-distribution-reverse': 3101, 'product-order': 4000, 'product-order-cancel': 4001, 'product-order-refund': 4002, 'product-order-partial-refund': 4003, 'product-redemption': 4004, 'product-redemption-cancel': 4005, 'system-adjustment': 5000, 'system-reward': 5001, 'system-penalty': 5002, 'system-reversal': 5003, 'system-migration': 5004} ====================================================================== FAIL: test_unregister_custom_transaction_type (tests.test_transaction_types.CustomTransactionTypeTests.test_unregister_custom_transaction_type) Test unregistering a custom transaction type. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cursorai/projects/django-wallet-utils/tests/test_transaction_types.py", line 293, in test_unregister_custom_transaction_type self.assertIn("custom-reward", TRANSACTION_TYPES) AssertionError: 'custom-reward' not found in {'wallet-deposit': 1000, 'wallet-deposit-cancel': 1001, 'wallet-transfer': 1002, 'wallet-withdraw': 1003, 'wallet-withdraw-refund': 1004, 'wallet-adjust': 1005, 'wallet-topup': 1006, 'wallet-deduct': 1007, 'package-activation': 2000, 'package-activation-cancel': 2001, 'package-upgrade': 2002, 'package-upgrade-cancel': 2003, 'package-renewal': 2004, 'package-renewal-cancel': 2005, 'package-expiry-refund': 2006, 'commission-distribution': 3000, 'commission-distribution-reverse': 3001, 'roi-distribution': 3100, 'roi-distribution-reverse': 3101, 'product-order': 4000, 'product-order-cancel': 4001, 'product-order-refund': 4002, 'product-order-partial-refund': 4003, 'product-redemption': 4004, 'product-redemption-cancel': 4005, 'system-adjustment': 5000, 'system-reward': 5001, 'system-penalty': 5002, 'system-reversal': 5003, 'system-migration': 5004} ---------------------------------------------------------------------- Ran 130 tests in 1.242s FAILED (failures=2) Destroying test database for alias 'default'... Found 130 test(s). System check identified no issues (0 silenced).