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