/conftest.py Secret
Created
October 13, 2022 04:27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import pytest | |
@pytest.fixture(scope='session') | |
def event_loop(): | |
""" | |
Creates an instance of the default event loop for the test session. | |
""" | |
policy = asyncio.get_event_loop_policy() | |
loop = policy.new_event_loop() | |
yield loop | |
loop.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment