master
/ miniconda3 / pkgs / jupyter_client-8.1.0-py310h06a4308_0 / info / test / tests / conftest.py

conftest.py @a663dc1 raw · history · blame

import asyncio
import os

if os.name == "nt":
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())  # type:ignore

import pytest

# Must be set before importing from `jupyter_core`.
os.environ['JUPYTER_PLATFORM_DIRS'] = '1'


pytest_plugins = ["pytest_jupyter", "pytest_jupyter.jupyter_client"]


@pytest.fixture(autouse=True)
def setup_environ(jp_environ):
    pass