mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updated integration.modules.state
test suite to use salttesting.helpers.ensure_in_syspath()
This commit is contained in:
parent
2c30133404
commit
b46bef99b9
1 changed files with 5 additions and 14 deletions
|
@ -2,21 +2,12 @@
|
|||
import os
|
||||
import shutil
|
||||
|
||||
# Import Salt Testing libs
|
||||
from salttesting.helpers import ensure_in_syspath
|
||||
ensure_in_syspath('../../')
|
||||
|
||||
# Import salt libs
|
||||
try:
|
||||
import integration
|
||||
except ImportError:
|
||||
if __name__ == '__main__':
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(
|
||||
0, os.path.abspath(
|
||||
os.path.join(
|
||||
os.path.dirname(__file__), '../../'
|
||||
)
|
||||
)
|
||||
)
|
||||
import integration
|
||||
import integration
|
||||
import salt.utils
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue