Skip to content

Commit

Permalink
Tune test timings for AppVeyor. Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasily-v-ryabov committed Jun 29, 2015
1 parent dc08488 commit 8771b1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ but it also supports more complex actions.

### Setup
* Install [pyWin32 extensions](http://sourceforge.net/projects/pywin32/files/pywin32/) (no need for Active Python)
* Download [master branch as ZIP](https://github.com/pywinauto/pywinauto/archive/master.zip)
* Download [latest pywinauto release](https://github.com/pywinauto/pywinauto/releases/download/0.5.0/pywinauto-0.5.0.zip)
* Just unpack and run `python setup.py install`

### Roadmap
* pywinauto 0.5.0 is planned until end of June, 2015.
### Release notes (pywinauto 0.5.0)
- [x] 64-bit Python and 64-bit apps support (but 32-bit Python is recommended for 32-bit apps)
- [x] Python 2.x/3.x compatibility
- [!] Added pyWin32 dependency (silent install by pip for 2.7 and 3.1+)
Expand Down
3 changes: 2 additions & 1 deletion pywinauto/unittests/test_HwndWrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,9 @@ def setUp(self):
self.app.start_(r"C:\Windows\SysWOW64\notepad.exe")

# Get the old font
self.app.UntitledNotepad.Wait('ready', 50)
self.app.UntitledNotepad.MenuSelect("Format->Font...")
self.app.Font.Wait("visible", 30)
self.app.Font.Wait("visible", 50)

self.old_font = self.app.Font.FontComboBox.SelectedIndex()
self.old_font_style = self.app.Font.FontStyleCombo.SelectedIndex()
Expand Down
6 changes: 3 additions & 3 deletions pywinauto/unittests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,11 @@ def testExists_timing(self):
# try ones that should be found immediately
start = time.time()
self.assertEquals(True, self.dlgspec.Exists())
self.assertEquals(True, time.time() - start < .2)
self.assertEquals(True, time.time() - start < .3)

start = time.time()
self.assertEquals(True, self.ctrlspec.Exists())
self.assertEquals(True, time.time() - start < .2)
self.assertEquals(True, time.time() - start < .3)

# try one that should not be found
start = time.time()
Expand All @@ -545,7 +545,7 @@ def testExists_timing(self):
def testWait(self):
"test the functionality and timing of the wait method"

allowable_error = .09
allowable_error = .3

start = time.time()
self.assertEqual(self.dlgspec.WrapperObject(), self.dlgspec.Wait("enaBleD "))
Expand Down

0 comments on commit 8771b1b

Please sign in to comment.