Creating test database for alias 'default'... ......F.....Dependency R001 not completed for 2025-12-29. Skipping D001. ./home/cursorai/projects/telegram-earn/backend/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1612: RuntimeWarning: DateTimeField Investment.start_date received a naive datetime (2025-12-28 00:00:00) while time zone support is active. warnings.warn( /home/cursorai/projects/telegram-earn/backend/venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1612: RuntimeWarning: DateTimeField Investment.end_date received a naive datetime (2025-12-29 00:00:00) while time zone support is active. warnings.warn( ...............E.......F.............................................................................................................Not Found: /api/users/dev/generate-referral-url/ ...Bad Request: /api/users/dev/generate-referral-url/ .Bad Request: /api/users/dev/generate-referral-url/ .........................Failed to send Telegram message: network error .Telegram sendMessage returned non-200 status: 500 .Cannot send Telegram message: bot token missing ....... ====================================================================== ERROR: test_different_tiers_same_start_date_logic (apps.investments.tests.test_start_date_logic.InvestmentStartDateTests.test_different_tiers_same_start_date_logic) Standard: All tiers use same start_date logic regardless of amount. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cursorai/projects/telegram-earn/backend/apps/investments/tests/test_start_date_logic.py", line 94, in test_different_tiers_same_start_date_logic inv = Investment.objects.get(id=response.data["id"]) ~~~~~~~~~~~~~^^^^^^ KeyError: 'id' ====================================================================== FAIL: test_skips_before_first_reward_day (apps.investments.tests.test_calculate_rewards.CalculateRewardsCommandTests.test_skips_before_first_reward_day) No reward/commission is created on the investment start date. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cursorai/projects/telegram-earn/backend/apps/investments/tests/test_calculate_rewards.py", line 144, in test_skips_before_first_reward_day self.assertFalse( AssertionError: True is not false ====================================================================== FAIL: test_multiple_investments_correct_timing (apps.investments.tests.test_start_date_logic.RewardCalculationTimingTests.test_multiple_investments_correct_timing) Standard: Multiple investments created on different days calculate correctly. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cursorai/projects/telegram-earn/backend/apps/investments/tests/test_start_date_logic.py", line 341, in test_multiple_investments_correct_timing self.assertEqual(Reward.objects.filter(investment=inv1).count(), 3) # Dec 21, 22, 23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: 2 != 3 ---------------------------------------------------------------------- Ran 184 tests in 2.056s FAILED (failures=2, errors=1) Destroying test database for alias 'default'... Found 184 test(s). System check identified no issues (0 silenced). Running CalculateRewardsTask for 2025-12-29... Success: Calculated 1 new rewards for 2025-12-29. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. Running CalculateRewardsTask for 2026-01-04... Success: Calculated 1 new rewards for 2026-01-04. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. Running CalculateRewardsTask for 2025-12-29... Success: Calculated 1 new rewards for 2025-12-29. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. Running CalculateRewardsTask for 2025-12-29... Success: Calculated 0 new rewards for 2025-12-29. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. Running CalculateRewardsTask for 2026-01-09... Success: Calculated 1 new rewards for 2026-01-09. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. Running CalculateRewardsTask for 2026-01-06... Success: Calculated 1 new rewards for 2026-01-06. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. Running CalculateRewardsTask for 2026-01-08... Success: Calculated 1 new rewards for 2026-01-08. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. Running CalculateRewardsTask for 2025-12-28... Success: Calculated 1 new rewards for 2025-12-28. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. Running CalculateRewardsTask for 2025-12-29... Success: Calculated 0 new rewards for 2025-12-29. Note: This command only calculates rewards (Phase 1). To distribute rewards (Phase 2), run the distribute-rewards task. EXIT_CODE: 1