#!/usr/bin/env python
-#-*- coding:utf-8 -*-
+# -*- coding:utf-8 -*-
# Copyright (C) 2010-2018 CEA/DEN
#
sleep_time = 2
+
class TestCase(unittest.TestCase):
"""sat config --edit"""
-
+
def test_010(self):
# Test the launch of the editor when invoking the config -e
OK = "KO"
sat = Sat("-oUSER.editor='cooledit'")
sat.config()
- cmd_config = threading.Thread(target=sat.config, args=('-e',))
+ cmd_config = threading.Thread(target=sat.config, args=("-e",))
cmd_config.start()
time.sleep(sleep_time)
editor = sat.cfg.USER.editor
- pid = check_proc_existence_and_kill_multi(editor + ".*" + "salomeTools\.pyconf", 10)
+ pid = check_proc_existence_and_kill_multi(
+ editor + ".*" + "salomeTools\.pyconf", 10
+ )
if pid:
OK = "OK"
sat = Sat("-oUSER.editor='cooledit'")
sat.config()
- cmd_config = threading.Thread(target=sat.config, args=('appli-test -e',))
+ cmd_config = threading.Thread(target=sat.config, args=("appli-test -e",))
cmd_config.start()
time.sleep(sleep_time)
editor = sat.cfg.USER.editor
- pid = check_proc_existence_and_kill_multi(editor + ".*" + "appli-test\.pyconf", 10)
+ pid = check_proc_existence_and_kill_multi(
+ editor + ".*" + "appli-test\.pyconf", 10
+ )
if pid:
OK = "OK"
self.assertEqual(OK, "OK")
-
+
+
# test launch
-if __name__ == '__main__':
+if __name__ == "__main__":
unittest.main()
pass