Skip to content

Commit

Permalink
Use unittest.mock instead of mock
Browse files Browse the repository at this point in the history
Closes #62.
  • Loading branch information
mgedmin committed Jan 12, 2022
1 parent b46ddf3 commit 6b088bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -27,7 +27,7 @@ include release.mk


bin/pytest: | bin/pip
bin/pip install pytest mock
bin/pip install pytest
ln -sfr .venv/$@ $@

bin/restview: setup.py | bin/pip
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -61,9 +61,8 @@ def get_version(filename='src/restview/restviewhttp.py'):
package_data={'restview': ['*.css', '*.ico']},
include_package_data=True,
install_requires=['docutils', 'readme_renderer', 'pygments'],
extras_require={'syntax': [], 'test': ['mock']},
extras_require={'syntax': [], 'test': []},
test_suite='restview.tests.test_suite',
tests_require=['mock'],
zip_safe=False,
entry_points="""
[console_scripts]
Expand Down
2 changes: 1 addition & 1 deletion src/restview/tests.py
Expand Up @@ -5,9 +5,9 @@
import unittest
import webbrowser
from io import StringIO
from unittest.mock import Mock, patch

import docutils.utils
from mock import Mock, patch

from restview.restviewhttp import (
MyRequestHandler,
Expand Down

0 comments on commit 6b088bc

Please sign in to comment.