Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unittest for mock instead of the mock module #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions parameterized/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

import inspect
import sys
import mock
from functools import wraps
from unittest import TestCase
from unittest import mock, TestCase
try:
from nose.tools import assert_equal, assert_raises
except ImportError:
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ envlist=pypy3-{nose,nose2,pytest3,unit,unit2},py{37,38,39}-{nose,nose2,pytest3,u
[testenv]
deps=
nose
mock
nose2: nose2
pytest2: pytest>=2,<3
pytest3: pytest>=3,<4
Expand All @@ -18,4 +17,4 @@ commands=
pytest3: py.test parameterized/test.py
#pytest4: py.test parameterized/test.py
unit: python -m unittest parameterized.test
unit2: unit2 parameterized.test
unit2: unit2 parameterized.test