💚 Fix py2.7 test issue

We still need to stay compatible to py2, so
we need to import mock, not unittest.mock.
This commit is contained in:
Gina Häußge committed 2021-01-18 17:06:08 +01:00
1 parent 8af4144a66
commit e9adcddf7f
1 file changed
+3 -1
+3 -1
View File
@@ -1,8 +1,10 @@
# -*- coding: utf-8 -*-
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2021 The OctoPrint Project - Released under terms of the AGPLv3 License"
import unittest
from unittest.mock import ANY, MagicMock, call, patch
from mock import ANY, MagicMock, call, patch
from octoprint.printer.standard import Printer