Skip to content

Commit 7a68de4

Browse files
committed
Fixing docs for readthedocs.org
1 parent 0feeb26 commit 7a68de4

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

docs/index.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ created earlier::
121121
Waiting for threads, processes, etc.
122122
====================================
123123

124-
If your program has long running cumputations running in other threads or
124+
If your program has long running computations running in other threads or
125125
processes, you can use :meth:`qtbot.waitSignal <pytestqt.plugin.QtBot.waitSignal>`
126126
to block a test until a signal is emitted (such as ``QThread.finished``) or a
127127
timeout is reached. This makes it easy to write tests that wait until a
@@ -146,6 +146,10 @@ QtBot
146146

147147
.. module:: pytestqt.plugin
148148
.. autoclass:: QtBot
149+
150+
SignalBlocker
151+
-------------
152+
149153
.. autoclass:: SignalBlocker
150154

151155
Versioning

pytestqt/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class QtBot(object):
6060
.. automethod:: addWidget
6161
.. automethod:: waitForWindowShown
6262
.. automethod:: stopForInteraction
63+
64+
**Signals**
65+
6366
.. automethod:: waitSignal
6467
6568
**Raw QTest API**
@@ -305,7 +308,6 @@ def _quit_loop_by_signal(self):
305308
self._loop.quit()
306309

307310
def __enter__(self):
308-
# Return self for testing purposes. Generally not needed.
309311
return self
310312

311313
def __exit__(self, type, value, traceback):

pytestqt/qt_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def __getattr__(cls, name):
7676
return Mock()
7777

7878
QtGui = Mock()
79+
QtCore = Mock()
7980
QtTest = Mock()
8081
Qt = Mock()
8182
QEvent = Mock()

0 commit comments

Comments
 (0)