Updated integration.shell.key test suite to use salttesting.helpers.ensure_in_syspath()

This commit is contained in:
Pedro Algarvio 2013-06-27 13:24:18 +01:00
parent 495f8f0440
commit dfa110d5cc
2 changed files with 5 additions and 14 deletions

View file

@ -10,7 +10,6 @@
# Import python libs
import os
import sys
import yaml
import pipes

View file

@ -1,22 +1,14 @@
# Import python libs
import os
import sys
import shutil
import tempfile
# 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__':
sys.path.insert(
0, os.path.abspath(
os.path.join(
os.path.dirname(__file__), '../../'
)
)
)
import integration
import integration
class KeyTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):