/
/
/
1"""Shared fixtures for the players controller tests."""
2
3from __future__ import annotations
4
5from typing import TYPE_CHECKING
6
7import pytest
8
9from tests.common import MockProvider
10
11if TYPE_CHECKING:
12 from unittest.mock import MagicMock
13
14
15@pytest.fixture
16def provider(mock_mass: MagicMock) -> MockProvider:
17 """Create a mock provider."""
18 # mock_mass is defined per test module and differs between them, so a module
19 # requesting this fixture must bring its own
20 return MockProvider("test_provider", instance_id="test_prov", mass=mock_mass)
21