Fix Ruff import ordering for CI
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m53s
CI/CD Pipeline / Run Tests (push) Successful in 2m19s
CI/CD Pipeline / Build Docker Images (push) Successful in 3m26s
CI/CD Pipeline / Push to Gitea Registry (push) Failing after 20s
CI/CD Pipeline / Deploy to Server (push) Has been skipped

This commit is contained in:
2026-04-07 16:37:47 +02:00
parent 697ecb7d1c
commit ee497bd557
126 changed files with 280 additions and 382 deletions

View File

@@ -1,9 +1,8 @@
"""Фабрики для создания тестовых объектов с использованием factory_boy и faker"""
import factory
from faker import Faker
from apps.user.models import Profile, User
from faker import Faker
fake = Faker("ru_RU")

View File

@@ -1,9 +1,5 @@
"""Tests for user serializers"""
from django.contrib.auth import get_user_model
from django.test import TestCase
from faker import Faker
from apps.user.serializers import (
LoginSerializer,
PasswordChangeSerializer,
@@ -13,6 +9,9 @@ from apps.user.serializers import (
UserSerializer,
UserUpdateSerializer,
)
from django.contrib.auth import get_user_model
from django.test import TestCase
from faker import Faker
from .factories import ProfileFactory, UserFactory

View File

@@ -1,13 +1,12 @@
"""Tests for user services"""
from apps.core.exceptions import NotFoundError
from apps.user.services import ProfileService, UserService
from django.contrib.auth import get_user_model
from django.test import TestCase
from faker import Faker
from rest_framework_simplejwt.tokens import RefreshToken
from apps.core.exceptions import NotFoundError
from apps.user.services import ProfileService, UserService
from .factories import ProfileFactory, UserFactory
User = get_user_model()

View File

@@ -1,14 +1,13 @@
"""Tests for user DRF views"""
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 faker import Faker
from rest_framework import status
from rest_framework.test import APITestCase
from apps.user.models import Profile
from apps.user.services import UserService
from .factories import ProfileFactory, UserFactory
User = get_user_model()