mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Updated unit.utils.safe_walk_test
test suite to use salttesting.helpers.ensure_in_syspath()
This commit is contained in:
parent
0675fae89c
commit
bdf808773d
@ -4,27 +4,15 @@ from os.path import join
|
||||
from shutil import rmtree
|
||||
from tempfile import mkdtemp
|
||||
|
||||
# Import salt libs
|
||||
try:
|
||||
import integration
|
||||
except ImportError:
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
sys.path.insert(
|
||||
0, os.path.abspath(
|
||||
os.path.join(
|
||||
os.path.dirname(__file__), '../../'
|
||||
)
|
||||
)
|
||||
)
|
||||
import integration
|
||||
# Import Salt Testing libs
|
||||
from salttesting import TestCase
|
||||
from salttesting.helpers import ensure_in_syspath
|
||||
ensure_in_syspath('../../')
|
||||
|
||||
# Import salt libs
|
||||
import salt.utils
|
||||
import salt.utils.find
|
||||
|
||||
# Import Salt Testing libs
|
||||
from salttesting import TestCase, skipIf
|
||||
|
||||
|
||||
class TestUtils(TestCase):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user