mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
Fix test async warnings (#601)
* Fix tracemalloc async warnings * Comment out debug, left in for use if needed
This commit is contained in:
parent
f79d0603f7
commit
53cf5fd7f9
2 changed files with 30 additions and 4 deletions
|
|
@ -5,8 +5,18 @@ This conftest.py applies to all test directories.
|
|||
"""
|
||||
|
||||
import pytest
|
||||
# import asyncio
|
||||
# import tracemalloc
|
||||
# import warnings
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
# Uncomment the lines below to enable asyncio debug mode and tracemalloc
|
||||
# for tracing unawaited coroutines and their creation points
|
||||
# tracemalloc.start()
|
||||
# asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
|
||||
# warnings.simplefilter("always", ResourceWarning)
|
||||
# warnings.simplefilter("always", RuntimeWarning)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def mock_loki_handler(session_mocker=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue