SHA256
1
0
forked from pool/salt
salt/prevent-import-errors-when-running-test_btrfs-unit-t.patch

32 lines
952 B
Diff

From a3869f8e70bc8b03c49602f2ac58b0551f462cf5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
<psuarezhernandez@suse.com>
Date: Wed, 16 Sep 2020 12:40:47 +0100
Subject: [PATCH] Prevent import errors when running test_btrfs unit
tests
---
tests/unit/states/test_btrfs.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/unit/states/test_btrfs.py b/tests/unit/states/test_btrfs.py
index dceb971aa1..7bf91598dd 100644
--- a/tests/unit/states/test_btrfs.py
+++ b/tests/unit/states/test_btrfs.py
@@ -26,9 +26,10 @@
"""
import pytest
import salt.states.btrfs as btrfs
+import salt.utils.platform
from salt.exceptions import CommandExecutionError
from tests.support.mixins import LoaderModuleMockMixin
-from tests.support.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, patch
+from tests.support.mock import MagicMock, patch
from tests.support.unit import TestCase, skipIf
--
2.29.2