Extend organization analytics contract and fix test warnings
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 1m42s
CI/CD Pipeline / Run Tests (push) Successful in 1m45s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped

This commit is contained in:
2026-04-19 12:23:38 +02:00
parent f662e55139
commit 8ead5ebadc
14 changed files with 1348 additions and 130 deletions

View File

@@ -7,6 +7,7 @@ from apps.user.models import Profile
from apps.user.services import UserService
from django.contrib.auth import get_user_model
from django.urls import reverse
from django.utils import timezone
from faker import Faker
from rest_framework import status
from rest_framework.test import APITestCase
@@ -179,7 +180,7 @@ class AdminUsersManagementViewTest(APITestCase):
last_name="Петров",
)
now = datetime(2026, 4, 14, 10, 0, 0)
now = timezone.make_aware(datetime(2026, 4, 14, 10, 0, 0))
completed_job = now + timedelta(minutes=3)
failed_job = now - timedelta(minutes=10)
BackgroundJob.objects.create(