text: import pytest
  from django.test.client import Client
  from rest_framework.test import APIClient
  
  from jobya.blog.models import Category, Post
  from jobya.blog.tests.factories import CategoryFactory, PostFactory
  from jobya.users.models import Profile, User
  from jobya.users.tests.factories import ProfileFactory, UserFactory
  
  
  @pytest.fixture
  def client() -> Client():
      return Client()
  
  
  @pytest.fixture
  def api_client():
      return APIClient()
  
  
  @pytest.fixture(autouse=True)
  def media_storage(settings, tmpdir):
      settings.MEDIA_ROOT = tmpdir.strpath
  
  
  @pytest.fixture
  def user() -> User:
      return UserFactory()
  
  
  @pytest.fixture
  def profile() -> Profile:
      return ProfileFactory()
  
  
  @pytest.fixture
  def blog_category() -> Category:
      return CategoryFactory()
  
  
  @pytest.fixture
  def post() -> Post:
      return PostFactory()
  