diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-04-15 13:14:54 -0700 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-04-15 13:14:54 -0700 |
commit | a6b5733a94eaaf42c5b113de64fced3ea807c91e (patch) | |
tree | bc11927cb07e5ac910450c56d64c42a0a9c14687 /tests | |
parent | e60836418647935572a9a35c7292ea73ff0fba07 (diff) | |
download | cmd2-git-a6b5733a94eaaf42c5b113de64fced3ea807c91e.tar.gz |
Removed unit test dependency on mock
mock was a backport of Python's built in unittest.mock and was required for Python 3.2 or earlier
- Since we now support Python 3.4+ moving forward we no longer need to make use of the 3rd party mock module
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_argparse.py | 2 | ||||
-rw-r--r-- | tests/test_cmd2.py | 2 | ||||
-rw-r--r-- | tests/test_completion.py | 2 | ||||
-rw-r--r-- | tests/test_transcript.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_argparse.py b/tests/test_argparse.py index 02c1701b..7096848a 100644 --- a/tests/test_argparse.py +++ b/tests/test_argparse.py @@ -6,7 +6,7 @@ import argparse import pytest import cmd2 -import mock +from unittest import mock from conftest import run_cmd, StdOut diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 339dbed9..2da75f93 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -11,7 +11,7 @@ import sys import io import tempfile -import mock +from unittest import mock import pytest import six diff --git a/tests/test_completion.py b/tests/test_completion.py index b102bc0a..5e76aee6 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -13,7 +13,7 @@ import os import sys import cmd2 -import mock +from unittest import mock import pytest # Prefer statically linked gnureadline if available (for macOS compatibility due to issues with libedit) diff --git a/tests/test_transcript.py b/tests/test_transcript.py index f7b4a8f2..a579b04a 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -11,7 +11,7 @@ import sys import re import random -import mock +from unittest import mock import pytest import six |