mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-07-04 18:23:11 +02:00
Split 16+ files. 27 files still need splitting. See session notes.
15 lines
338 B
Python
15 lines
338 B
Python
"""Shared fixtures for keyboard_coop tests."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from unittest.mock import MagicMock, patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def mock_pygame() -> MagicMock:
|
|
"""Mock pygame to prevent display initialization."""
|
|
with patch.dict("sys.modules", {"pygame": MagicMock()}):
|
|
yield
|