File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1111import pytest_xprocess_compat # noqa: F401
1212
1313
14- @pytest .fixture (scope = "session" )
14+ @pytest .fixture (scope = "session" ) # type: ignore[misc]
1515def event_loop () -> Generator [asyncio .AbstractEventLoop , None , None ]:
1616 """Create an instance of the default event loop for the test session."""
1717 loop = asyncio .get_event_loop_policy ().new_event_loop ()
1818 yield loop
1919 loop .close ()
2020
2121
22- @pytest .fixture (autouse = True )
23- def mock_environment ():
22+ @pytest .fixture (autouse = True ) # type: ignore[misc]
23+ def mock_environment () -> None :
2424 """Set up mock environment variables for testing."""
2525 import os
2626
Original file line number Diff line number Diff line change 99from types import ModuleType
1010
1111
12- def getrootdir ():
12+ def getrootdir () -> str :
1313 """Compatibility function for pytest_xprocess.getrootdir"""
1414 return tempfile .gettempdir ()
1515
1616
1717# Create a comprehensive mock pytest_xprocess module
1818mock_module = ModuleType ("pytest_xprocess" )
19- mock_module .getrootdir = getrootdir
19+ mock_module .getrootdir = getrootdir # type: ignore
2020
2121# Add other commonly expected attributes to avoid import errors
22- mock_module .__version__ = "1.0.0"
22+ mock_module .__version__ = "1.0.0" # type: ignore
2323mock_module .__file__ = __file__
2424
2525# Patch sys.modules early to prevent import errors
You can’t perform that action at this time.
0 commit comments