Reduce deprecation warnings in tests

This commit is contained in:
Sangat Das 2022-02-03 08:28:57 +00:00
parent f366aab1f2
commit c2b4e550f0
3 changed files with 10 additions and 2 deletions

View File

@ -3,3 +3,10 @@ testpaths = tests/
norecursedirs = .* *.egg *.egg-info env* devenv* docs
addopts = -m "not abci"
looponfailroots = planetmint tests
asyncio_mode = strict
markers =
userfixtures
language
tendermint
usefixture
execute

View File

@ -74,7 +74,7 @@ tests_require = [
install_requires = [
'chardet==3.0.4',
'aiohttp==3.7.4',
'aiohttp==3.8.1',
'bigchaindb-abci==1.0.7',
'planetmint-cryptoconditions>=0.9.0',
'flask-cors==3.0.10',

View File

@ -9,6 +9,7 @@ Tasks:
1. setup test database before starting the tests
2. delete test database after running the tests
"""
import asyncio
import json
import os
import copy
@ -430,7 +431,7 @@ def abci_http(_setup_database, _configure_planetmint, abci_server,
return False
@pytest.yield_fixture(scope='session')
@pytest.fixture(scope='session')
def event_loop():
import asyncio