mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
Remove unittest2 framework
This commit is contained in:
parent
6b57ce9f15
commit
58a4b15f45
4
Makefile
4
Makefile
|
@ -48,14 +48,14 @@ uninstall:
|
|||
test-py2: build
|
||||
# Unit tests with coverage report
|
||||
coverage erase
|
||||
coverage run --rcfile=./.coveragerc -m unittest2 discover -s tests/unit/ -p test_*_py2_py3.py
|
||||
coverage run --rcfile=./.coveragerc -m unittest discover -s tests/unit/ -p test_*_py2_py3.py
|
||||
coverage report --rcfile=./.coveragerc
|
||||
coverage html --rcfile=./.coveragerc
|
||||
|
||||
test: build
|
||||
# Unit tests with coverage report
|
||||
coverage erase
|
||||
coverage run --rcfile=./.coveragerc -m unittest2 discover -s tests/unit/ -p test_*py3*.py
|
||||
coverage run --rcfile=./.coveragerc -m unittest discover -s tests/unit/ -p test_*py3*.py
|
||||
coverage report --rcfile=./.coveragerc
|
||||
coverage html --rcfile=./.coveragerc
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
cython==0.29.21
|
||||
tox
|
||||
unittest2
|
||||
coverage
|
||||
flake8
|
||||
pydocstyle
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""Dependency injector declarative container unit tests."""
|
||||
|
||||
import collections
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import (
|
||||
containers,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Dependency injector dynamic container unit tests for async resources."""
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
# Runtime import to get asyncutils module
|
||||
import os
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Dependency injector dynamic container unit tests."""
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import (
|
||||
containers,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Dependency injector Flask extension unit tests."""
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
from flask import Flask, url_for
|
||||
from flask.views import MethodView
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Dependency injector base providers unit tests."""
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import (
|
||||
containers,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import sys
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import (
|
||||
providers,
|
||||
|
|
|
@ -6,7 +6,7 @@ import os
|
|||
import sys
|
||||
import tempfile
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import containers, providers, errors
|
||||
try:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import copy
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import containers, providers, errors
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import asyncio
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import (
|
||||
providers,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import sys
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import providers
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import sys
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import (
|
||||
providers,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Dependency injector injections unit tests."""
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import providers
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import sys
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import providers
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Dependency injector provided instance provider unit tests."""
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import containers, providers
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import asyncio
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import containers, providers, resources, errors
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import functools
|
|||
import itertools
|
||||
import sys
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import providers, errors
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import sys
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import (
|
||||
providers,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Dependency injector provider utils unit tests."""
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import (
|
||||
providers,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Dependency injector common unit tests."""
|
||||
|
||||
import unittest2 as unittest
|
||||
import unittest
|
||||
|
||||
from dependency_injector import __version__
|
||||
|
||||
|
|
17
tox.ini
17
tox.ini
|
@ -4,7 +4,6 @@ envlist=
|
|||
|
||||
[testenv]
|
||||
deps=
|
||||
unittest2
|
||||
# TODO: Hotfix, remove when fixed https://github.com/aio-libs/aiohttp/issues/5107
|
||||
typing_extensions
|
||||
httpx
|
||||
|
@ -15,7 +14,7 @@ extras=
|
|||
flask
|
||||
aiohttp
|
||||
commands=
|
||||
unit2 discover -s tests/unit -p test_*_py3*.py
|
||||
python -m unittest discover -s tests/unit -p test_*_py3*.py
|
||||
|
||||
[testenv:coveralls]
|
||||
passenv = GITHUB_* COVERALLS_*
|
||||
|
@ -28,44 +27,40 @@ deps=
|
|||
coveralls
|
||||
commands=
|
||||
coverage erase
|
||||
coverage run --rcfile=./.coveragerc -m unittest2 discover -s tests/unit/ -p test_*_py3*.py
|
||||
coverage run --rcfile=./.coveragerc -m unittest discover -s tests/unit/ -p test_*_py3*.py
|
||||
coverage report --rcfile=./.coveragerc
|
||||
coveralls
|
||||
|
||||
[testenv:2.7]
|
||||
deps=
|
||||
unittest2
|
||||
extras=
|
||||
yaml
|
||||
flask
|
||||
commands=
|
||||
unit2 discover -s tests/unit -p test_*_py2_py3.py
|
||||
python -m unittest discover -s tests/unit -p test_*_py2_py3.py
|
||||
|
||||
[testenv:3.4]
|
||||
deps=
|
||||
unittest2
|
||||
extras=
|
||||
flask
|
||||
commands=
|
||||
unit2 discover -s tests/unit -p test_*_py3.py
|
||||
python -m unittest discover -s tests/unit -p test_*_py3.py
|
||||
|
||||
[testenv:3.5]
|
||||
deps=
|
||||
unittest2
|
||||
extras=
|
||||
yaml
|
||||
flask
|
||||
commands=
|
||||
unit2 discover -s tests/unit -p test_*_py3.py
|
||||
python -m unittest discover -s tests/unit -p test_*_py3.py
|
||||
|
||||
[testenv:pypy2]
|
||||
deps=
|
||||
unittest2
|
||||
extras=
|
||||
yaml
|
||||
flask
|
||||
commands=
|
||||
unit2 discover -s tests/unit -p test_*_py2_py3.py
|
||||
python -m unittest discover -s tests/unit -p test_*_py2_py3.py
|
||||
|
||||
[testenv:pylint]
|
||||
deps=
|
||||
|
|
Loading…
Reference in New Issue
Block a user