mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 00:12:54 +08:00
13 lines
311 B
Python
13 lines
311 B
Python
import asyncio
|
|
|
|
import pytest_asyncio
|
|
|
|
|
|
@pytest_asyncio.fixture(scope="session")
|
|
def event_loop():
|
|
"""Overrides pytest default function scoped event loop"""
|
|
# return asyncio.get_event_loop()
|
|
policy = asyncio.get_event_loop_policy()
|
|
loop = policy.new_event_loop()
|
|
yield loop
|
|
loop.close()
|