Skip to content

Commit 8014f02

Browse files
committed
Update and rename README.rst to README.md
1 parent d0dc91b commit 8014f02

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# pytest-qt #
2+
3+
pytest-qt is a [pytest](http://pytest.org) plugin that provides fixtures to help
4+
programmers write tests for [PySide](https://pypi.python.org/pypi/PySide) and [PyQt](http://www.riverbankcomputing.com/software/pyqt)
5+
applications.
6+
7+
The main usage is to use the qtbot fixture, which provides methods to simulate user interaction, like key presses and mouse clicks:
8+
9+
```
10+
def test_hello(qtbot):
11+
widget = HelloWidget()
12+
qtbot.addWidget(widget)
13+
14+
# click in the Greet button and make sure it updates the appropriate label
15+
qtbot.mouseClick(window.button_greet, QtCore.Qt.LeftButton)
16+
17+
assert window.greet_label.text() == 'Hello!'
18+
```
19+
20+
Full documentation and tutorial available at `Read the Docs`_.
21+

README.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)