diff --git a/tests/unit/modules/etcd_mod_test.py b/tests/unit/modules/etcd_mod_test.py index 353b658bab..65e8105a99 100644 --- a/tests/unit/modules/etcd_mod_test.py +++ b/tests/unit/modules/etcd_mod_test.py @@ -3,6 +3,9 @@ :codeauthor: :email:`Jayesh Kariya ` ''' +# Import Python Libs +from __future__ import absolute_import + # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( @@ -11,6 +14,9 @@ from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON ) +from salttesting.helpers import ensure_in_syspath + +ensure_in_syspath('../../') # Import Salt Libs from salt.modules import etcd_mod diff --git a/tests/unit/modules/introspect_test.py b/tests/unit/modules/introspect_test.py index 63f159ba71..6245774005 100644 --- a/tests/unit/modules/introspect_test.py +++ b/tests/unit/modules/introspect_test.py @@ -3,6 +3,9 @@ :codeauthor: :email:`Jayesh Kariya ` ''' +# Import Python Libs +from __future__ import absolute_import + # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( @@ -11,6 +14,9 @@ from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON ) +from salttesting.helpers import ensure_in_syspath + +ensure_in_syspath('../../') # Import Salt Libs from salt.modules import introspect diff --git a/tests/unit/modules/iptables_test.py b/tests/unit/modules/iptables_test.py index 0998349ea3..f4c00a1165 100644 --- a/tests/unit/modules/iptables_test.py +++ b/tests/unit/modules/iptables_test.py @@ -3,6 +3,10 @@ :codeauthor: :email:`Jayesh Kariya ` ''' +# Import Python Libs +from __future__ import absolute_import +import uuid + # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( @@ -11,7 +15,9 @@ from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON ) -import uuid +from salttesting.helpers import ensure_in_syspath + +ensure_in_syspath('../../') # Import Salt Libs from salt.modules import iptables diff --git a/tests/unit/modules/locate_test.py b/tests/unit/modules/locate_test.py index 8e286c8484..ab1a698056 100644 --- a/tests/unit/modules/locate_test.py +++ b/tests/unit/modules/locate_test.py @@ -3,6 +3,9 @@ :codeauthor: :email:`Jayesh Kariya ` ''' +# Import Python Libs +from __future__ import absolute_import + # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( @@ -11,6 +14,9 @@ from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON ) +from salttesting.helpers import ensure_in_syspath + +ensure_in_syspath('../../') # Import Salt Libs from salt.modules import locate diff --git a/tests/unit/modules/logrotate_test.py b/tests/unit/modules/logrotate_test.py index f7a2d69d29..c9a09d2efd 100644 --- a/tests/unit/modules/logrotate_test.py +++ b/tests/unit/modules/logrotate_test.py @@ -3,6 +3,9 @@ :codeauthor: :email:`Jayesh Kariya ` ''' +# Import Python Libs +from __future__ import absolute_import + # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( @@ -11,6 +14,9 @@ from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON ) +from salttesting.helpers import ensure_in_syspath + +ensure_in_syspath('../../') # Import Salt Libs from salt.modules import logrotate diff --git a/tests/unit/modules/munin_test.py b/tests/unit/modules/munin_test.py index a95d8ffb4e..18b140bf51 100644 --- a/tests/unit/modules/munin_test.py +++ b/tests/unit/modules/munin_test.py @@ -3,6 +3,9 @@ :codeauthor: :email:`Jayesh Kariya ` ''' +# Import Python Libs +from __future__ import absolute_import + # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( @@ -11,6 +14,9 @@ from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON ) +from salttesting.helpers import ensure_in_syspath + +ensure_in_syspath('../..') # Import Salt Libs from salt.modules import munin