mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Updated integration.modules.test
test suite to use salttesting.helpers.ensure_in_syspath()
This commit is contained in:
parent
738447d0a9
commit
f69373a277
@ -1,19 +1,12 @@
|
|||||||
# Import python libs
|
# Import python libs
|
||||||
|
|
||||||
import os
|
import os
|
||||||
try:
|
|
||||||
import integration
|
# Import Salt Testing libs
|
||||||
except ImportError:
|
from salttesting.helpers import ensure_in_syspath
|
||||||
if __name__ == '__main__':
|
ensure_in_syspath('../../')
|
||||||
import sys
|
|
||||||
sys.path.insert(
|
# Import salt libs
|
||||||
0, os.path.abspath(
|
import integration
|
||||||
os.path.join(
|
|
||||||
os.path.dirname(__file__), '../../'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
import integration
|
|
||||||
|
|
||||||
|
|
||||||
class TestModuleTest(integration.ModuleCase):
|
class TestModuleTest(integration.ModuleCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user