mirror of
https://github.com/planetmint/planetmint.git
synced 2025-06-07 14:46:38 +00:00
Reduce deprecation warnings in tests
This commit is contained in:
parent
f366aab1f2
commit
c2b4e550f0
@ -3,3 +3,10 @@ testpaths = tests/
|
|||||||
norecursedirs = .* *.egg *.egg-info env* devenv* docs
|
norecursedirs = .* *.egg *.egg-info env* devenv* docs
|
||||||
addopts = -m "not abci"
|
addopts = -m "not abci"
|
||||||
looponfailroots = planetmint tests
|
looponfailroots = planetmint tests
|
||||||
|
asyncio_mode = strict
|
||||||
|
markers =
|
||||||
|
userfixtures
|
||||||
|
language
|
||||||
|
tendermint
|
||||||
|
usefixture
|
||||||
|
execute
|
||||||
|
2
setup.py
2
setup.py
@ -74,7 +74,7 @@ tests_require = [
|
|||||||
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
'chardet==3.0.4',
|
'chardet==3.0.4',
|
||||||
'aiohttp==3.7.4',
|
'aiohttp==3.8.1',
|
||||||
'bigchaindb-abci==1.0.7',
|
'bigchaindb-abci==1.0.7',
|
||||||
'planetmint-cryptoconditions>=0.9.0',
|
'planetmint-cryptoconditions>=0.9.0',
|
||||||
'flask-cors==3.0.10',
|
'flask-cors==3.0.10',
|
||||||
|
@ -9,6 +9,7 @@ Tasks:
|
|||||||
1. setup test database before starting the tests
|
1. setup test database before starting the tests
|
||||||
2. delete test database after running the tests
|
2. delete test database after running the tests
|
||||||
"""
|
"""
|
||||||
|
import asyncio
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import copy
|
import copy
|
||||||
@ -430,7 +431,7 @@ def abci_http(_setup_database, _configure_planetmint, abci_server,
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
@pytest.yield_fixture(scope='session')
|
@pytest.fixture(scope='session')
|
||||||
def event_loop():
|
def event_loop():
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user