More Python 3 compat changes to new test modules

This commit is contained in:
rallytime 2015-02-03 11:40:27 -07:00
parent 244ba09cfc
commit 2f9dc14af1
3 changed files with 18 additions and 3 deletions

View File

@ -3,6 +3,9 @@
:codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
'''
# 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 keyboard

View File

@ -3,6 +3,9 @@
:codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
'''
# 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 memcached

View File

@ -3,6 +3,9 @@
:codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
'''
# Import Python Libs
from __future__ import absolute_import
# Import Salt Testing Libs
from salttesting import TestCase, skipIf
from salttesting.mock import (
@ -11,15 +14,15 @@ 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 moosefs
# Globals
# moosefs.__grains__ = {}
moosefs.__salt__ = {}
# moosefs.__context__ = {}
# moosefs.__opts__ = {}
@skipIf(NO_MOCK, NO_MOCK_REASON)