Salome HOME
style: black format
[tools/sat.git] / test / test_sat5_0 / config / test_option_edit.py
index c6674e9c8f2384c46038fe331091c81ab0a715c4..b7e265300ac7bddb26b719c7f781f593709c04d1 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-#-*- coding:utf-8 -*-
+# -*- coding:utf-8 -*-
 
 #  Copyright (C) 2010-2018  CEA/DEN
 #
@@ -28,22 +28,25 @@ from unittestpy.tools import check_proc_existence_and_kill_multi
 
 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"
@@ -55,19 +58,22 @@ class TestCase(unittest.TestCase):
 
         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