On 2018/08/23 17:48, Elias M. Mariani wrote:
> Thanks Stuart.
> How did you run the tests?
> I tried and got errors using py-test-cov and runtests.py or "Ran 0
> tests" using the default.

Installed py-qt5 and did this:

$ cd qtpy/tests
$ py.test
================================================ test session starts 
=================================================
platform openbsd6 -- Python 2.7.15, pytest-3.5.0, py-1.5.3, pluggy-0.6.0

PyQt4: unknown version
PyQt5: PyQt: 5.9 - Qt: 5.9.6
PySide: not installed
PySide2: not installed

rootdir: /usr/obj/ports/py-qtpy-1.4.2/QtPy-1.4.2, inifile:
collected 19 items

test_main.py .                                                                  
                               [  5%]
test_patch_qcombobox.py ..                                             [ 15%]
test_patch_qheaderview.py .                                            [ 21%]
test_qdesktopservice_split.py ..s                                      [ 36%]
test_qtcore.py .                                                       [ 42%]
test_qtdesigner.py .                                                   [ 47%]
test_qthelp.py .                                                       [ 52%]
test_qtmultimedia.py .                                                 [ 57%]
test_qtnetwork.py .                                                    [ 63%]
test_qtprintsupport.py .                                               [ 68%]
test_qtsql.py .                                                        [ 73%]
test_qtsvg.py .                                                        [ 78%]
test_qttest.py .                                                       [ 84%]
test_uic.py ...                                                        [100%]

============================== warnings summary ==============================
None
  could not create cache path 
/usr/obj/ports/py-qtpy-1.4.2/QtPy-1.4.2/.pytest_cache/v/cache/nodeids

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============== 18 passed, 1 skipped, 1 warnings in 1.40 seconds ==============

(And similar with py.test-3 for the py3 version).

Reply via email to