Skip to content

Commit 0e2fcd5

Browse files
committed
add __all__ on __init__
add __all__ on __init__ now gui test will not use hell=true
1 parent 8d310db commit 0e2fcd5

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

.idea/workspace.xml

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

je_auto_control/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22
import all wrapper function
33
"""
44

5+
__all__ = [
6+
"click_mouse", "mouse_table", "position", "press_mouse", "release_mouse",
7+
"scroll", "set_position", "special_table",
8+
"keys_table", "press_key", "release_key", "type_key", "check_key_is_press",
9+
"write", "hotkey",
10+
"size", "screenshot",
11+
"locate_all_image", "locate_image_center", "locate_and_click",
12+
"CriticalExit",
13+
"AutoControlException", "AutoControlKeyboardException",
14+
"AutoControlMouseException", "AutoControlCantFindKeyException",
15+
"AutoControlScreenException", "ImageNotFoundException",
16+
"AutoControlJsonActionException", "AutoControlRecordException",
17+
"AutoControlActionNullException", "AutoControlActionException",
18+
"record", "stop_record",
19+
"read_action_json", "write_action_json",
20+
"execute_action", "execute_files", "executor", "add_command_to_executor",
21+
"multiprocess_timeout", "test_record_instance",
22+
"screenshot",
23+
"generate_html",
24+
"get_dir_files_as_list", "create_template_dir", "start_autocontrol_socket_server"
25+
]
526

627
# import mouse
728
from je_auto_control.wrapper.auto_control_mouse import click_mouse

test/gui_test/calculator/calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
open windows calc.exe
1010
and calculate 1 + 2 .... + 9
1111
"""
12-
subprocess.Popen("calc", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True)
12+
subprocess.Popen("calc", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
1313
sleep(3)
1414

1515
locate_and_click(

0 commit comments

Comments
 (0)