Skip to content

Commit 444f121

Browse files
committed
Update screenshot test
Update screenshot test * Add open calc and edge
1 parent fbea06b commit 444f121

File tree

2 files changed

+31
-18
lines changed

2 files changed

+31
-18
lines changed

.idea/workspace.xml

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

test/unit_test/screen/screenshot_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
import subprocess
2+
13
from je_auto_control import screenshot
24

35
# choose screenshot screen_region
46
image = screenshot(screen_region=[300, 400, 500, 600])
57
assert (image is not None)
68
print(image)
79

10+
subprocess.Popen("calc", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True)
11+
subprocess.Popen("edge", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True)
12+
813
# screenshot and save
914
image = screenshot("test.png")
1015
assert (image is not None)

0 commit comments

Comments
 (0)