File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,11 @@ pytest-qt is a `pytest`_ plugin to allow programmers write tests for `PySide`_ a
6
6
7
7
The main usage is to use the `qtbot ` fixture, responsible for handling `qApp `
8
8
creation as needed and provides methods to simulate user interaction,
9
- like key presses and mouse clicks::
9
+ like key presses and mouse clicks:
10
10
11
11
12
+ .. code-block :: python
13
+
12
14
def test_hello (qtbot ):
13
15
widget = HelloWidget()
14
16
qtbot.addWidget(widget)
@@ -27,13 +29,13 @@ This allows you to test and make sure your view layer is behaving the way you ex
27
29
28
30
|version | |downloads | |ci |
29
31
30
- .. |version | image :: http://img.shields.io/pypi/v/pytest-qt.svg
32
+ .. |version | image :: http://img.shields.io/pypi/v/pytest-qt.png
31
33
:target: https://crate.io/packages/pytest-qt
32
34
33
- .. |downloads | image :: http://img.shields.io/pypi/dm/pytest-qt.svg
35
+ .. |downloads | image :: http://img.shields.io/pypi/dm/pytest-qt.png
34
36
:target: https://crate.io/packages/pytest-qt
35
37
36
- .. |ci | image :: http://img.shields.io/travis/nicoddemus/pytest-qt.svg
38
+ .. |ci | image :: http://img.shields.io/travis/nicoddemus/pytest-qt.png
37
39
:target: https://travis-ci.org/nicoddemus/pytest-qt
38
40
39
41
Original file line number Diff line number Diff line change 14
14
# metadata for upload to PyPI
15
15
author = "Bruno Oliveira" ,
16
16
17
- description = open ('README.rst' ).read (),
17
+ description = 'pytest support for PyQt and PySide applications' ,
18
+ long_description = open ('README.rst' ).read (),
18
19
license = "LGPL" ,
19
20
keywords = "pytest qt test unittest" ,
20
21
url = "http://github.com/nicoddemus/pytest-qt" ,
You can’t perform that action at this time.
0 commit comments