You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -169,10 +169,10 @@ The `uic.loadUi` function of PyQt4 and PyQt5 as well as the `QtUiTools.QUiLoader
169
169
170
170
```python
171
171
import sys
172
-
from Qt importQtShim
172
+
from Qt importQtCompat
173
173
174
174
app = QtWidgets.QApplication(sys.argv)
175
-
ui =QtShim.load_ui(fname="my.ui")
175
+
ui =QtCompat.load_ui(fname="my.ui")
176
176
ui.show()
177
177
app.exec_()
178
178
```
@@ -340,6 +340,30 @@ Send us a pull-request with your project here.
340
340
341
341
### Developer Guide
342
342
343
+
Tests are performed on each aspect of the shim.
344
+
345
+
-[Functional](tests.py)
346
+
-[Caveats](build_caveats.py)
347
+
-[Examples](examples)
348
+
-[Membership](build_membership.py)
349
+
350
+
Each of these are run under..
351
+
352
+
- Python 2.7
353
+
- Python 3.4
354
+
355
+
..once for each binding or under a specific binding only.
356
+
357
+
Tests that are written at module level are run four times - once per binding - whereas tests written under a specific if-statement are run only for this particular binding.
358
+
359
+
```python
360
+
if binding("PyQt4"):
361
+
deftest_something_related_to_pyqt4():
362
+
pass
363
+
```
364
+
365
+
**Running tests**
366
+
343
367
Due to the nature of multiple bindings and multiple interpreter support, setting up a development environment in which to properly test your contraptions can be challenging. So here is a guide for how to do just that using **Docker**.
0 commit comments