Skip to content

Commit 1993d15

Browse files
committed
Update screenshot_test.py
1 parent 1b538e9 commit 1993d15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit_test/screen/screenshot_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import subprocess
2+
import time
23

34
from je_auto_control import screenshot
45

@@ -9,6 +10,8 @@
910

1011
subprocess.Popen("notepad.exe", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True)
1112

13+
time.sleep(10)
14+
1215
# screenshot and save
1316
image = screenshot("test.png")
1417
assert (image is not None)

0 commit comments

Comments
 (0)