浏览代码

Use mock compatibility import

`tests/__init__.py` already has a try/except statement to use mock from
the standard library when possible.  Take advantage of it like other
tests already do.

Signed-off-by: Carl George <[email protected]>
Carl George 7 年之前
父节点
当前提交
8b5d32373e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/unit/bundle_test.py

+ 1 - 1
tests/unit/bundle_test.py

@@ -2,9 +2,9 @@ from __future__ import absolute_import
 from __future__ import unicode_literals
 
 import docker
-import mock
 import pytest
 
+from .. import mock
 from compose import bundle
 from compose import service
 from compose.cli.errors import UserError