Creating test database for alias 'default'... .............................../home/cursorai/projects/telegram-earn/sandbox/venv/lib/python3.12/site-packages/django/db/models/base.py:368: RuntimeWarning: Model 'test_app.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) ........................................F...............F......E............../home/cursorai/projects/telegram-earn/sandbox/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField WalletTransaction.cdate received a naive datetime (2025-12-13 12:49:54.939615) while time zone support is active. warnings.warn( /home/cursorai/projects/telegram-earn/sandbox/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField WalletTransaction.cdate received a naive datetime (2025-12-13 12:50:54.939615) while time zone support is active. warnings.warn( ./home/cursorai/projects/telegram-earn/sandbox/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField WalletTransaction.cdate received a naive datetime (2025-12-12 12:50:54.981720) while time zone support is active. warnings.warn( /home/cursorai/projects/telegram-earn/sandbox/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField WalletTransaction.cdate received a naive datetime (2025-12-13 12:50:54.981720) while time zone support is active. warnings.warn( ........... ====================================================================== ERROR: test_system_user_id (test_app.tests.test_wallet_service.WalletServiceEdgeCasesTests.test_system_user_id) Test using system user ID (-100) for uid. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cursorai/projects/telegram-earn/packages/wallet_utils/src/wallet_utils/service.py", line 118, in add_point balance_after = self.repository.update_balance(user_id, point_type, amount_rounded, allow_negative=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/home/cursorai/projects/telegram-earn/packages/wallet_utils/src/wallet_utils/repository.py", line 216, in update_balance balance_obj = self._get_balance_object(user_id, for_update=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/cursorai/projects/telegram-earn/packages/wallet_utils/src/wallet_utils/repository.py", line 200, in _get_balance_object return queryset.get(pk=user_id) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/cursorai/projects/telegram-earn/sandbox/venv/lib/python3.12/site-packages/django/db/models/query.py", line 635, in get raise self.model.DoesNotExist( test_app.models.TestUser.DoesNotExist: TestUser matching query does not exist. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/cursorai/projects/telegram-earn/sandbox/test_app/tests/test_wallet_service.py", line 958, in test_system_user_id transaction_id = self.service.add_point( ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/cursorai/projects/telegram-earn/packages/wallet_utils/src/wallet_utils/service.py", line 120, in add_point raise WalletOperationError(f"Error adding user point: {e}") from e wallet_utils.exceptions.WalletOperationError: Error adding user point: TestUser matching query does not exist. ====================================================================== FAIL: test_add_point_very_large_amount (test_app.tests.test_wallet_service.WalletServiceAddPointTests.test_add_point_very_large_amount) Edge case: Add very large amount. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cursorai/projects/telegram-earn/sandbox/test_app/tests/test_wallet_service.py", line 245, in test_add_point_very_large_amount self.assertEqual(self.user.credit_balance, large_amount) AssertionError: Decimal('1000000000000000.00') != Decimal('999999999999999.99') ====================================================================== FAIL: test_deduct_point_zero_amount (test_app.tests.test_wallet_service.WalletServiceDeductPointTests.test_deduct_point_zero_amount) Edge case: Deduct zero amount. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cursorai/projects/telegram-earn/sandbox/test_app/tests/test_wallet_service.py", line 436, in test_deduct_point_zero_amount self.assertEqual(self.user.credit_balance, initial_balance) AssertionError: Decimal('1000.00') != 0 ---------------------------------------------------------------------- Ran 121 tests in 0.989s FAILED (failures=2, errors=1) Destroying test database for alias 'default'... Found 121 test(s). System check identified no issues (0 silenced).