2021-01-08 13:41:50 +01:00
|
|
|
From a3869f8e70bc8b03c49602f2ac58b0551f462cf5 Mon Sep 17 00:00:00 2001
|
2020-09-16 14:19:07 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
---
|
2021-01-08 13:41:50 +01:00
|
|
|
tests/unit/states/test_btrfs.py | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
2020-09-16 14:19:07 +02:00
|
|
|
|
|
|
|
diff --git a/tests/unit/states/test_btrfs.py b/tests/unit/states/test_btrfs.py
|
2021-01-08 13:41:50 +01:00
|
|
|
index dceb971aa1..7bf91598dd 100644
|
2020-09-16 14:19:07 +02:00
|
|
|
--- a/tests/unit/states/test_btrfs.py
|
|
|
|
+++ b/tests/unit/states/test_btrfs.py
|
2021-01-08 13:41:50 +01:00
|
|
|
@@ -26,9 +26,10 @@
|
|
|
|
"""
|
|
|
|
import pytest
|
2020-09-16 14:19:07 +02:00
|
|
|
import salt.states.btrfs as btrfs
|
|
|
|
+import salt.utils.platform
|
2021-01-08 13:41:50 +01:00
|
|
|
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
|
2020-09-16 14:19:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2021-01-08 13:41:50 +01:00
|
|
|
2.29.2
|
2020-09-16 14:19:07 +02:00
|
|
|
|
|
|
|
|