Skip to content

Commit

Permalink
Updated test case for Windows (partly)
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchassassin committed Nov 13, 2018
1 parent 0f3638c commit 7af29f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ def test_observer(appear_event):
self.assertTrue(r.TestFlag)
self.assertGreater(r.getTime(), 0)
# OCR
a = r.find("textedit_header.png").below(400)
if sys.platform.startswith("win"):
a = r.find("notepad_header.png").below(400)
elif sys.platform == "darwin":
a = r.find("textedit_header.png").below(400)
#a.highlight()
self.assertIsNotNone(a.findText("This is a test"))
self.assertGreater(len([a.findAllText("This is a test")]), 0)
Expand Down

0 comments on commit 7af29f6

Please sign in to comment.