Qt and Python; code easily using the Pytest framework

Опубликовано: 04 Октябрь 2024
на канале: Qt Group
2,438
28

TALK: Qt and Python; code easily using the Pytest framework
SPEAKER: Florian Bruhin
COMPANY: Bruhin Software
TRACK: Python

Talk recorded at the Qt World Summit 2019 event in Berlin.
#QtWS19 November 2019 - BCC

TALK DESCRIPTION:
Both PySide and PyQt allow rapid prototyping and development of Qt applications using the Python programming language. However, the Qt Test framework is focused on C++, and only a subset of its functionality is available in Python. Together with the “unittest” module in the Python standard library (which exposes a heavyweight, xUnit-like API), this can make tests unnecessarily cumbersome to write. The pytest framework coupled with the pytest-qt plugin allows writing tests for Qt/Python code in a much more straightforward and fun way. It exposes the QTestLib API, but also adds various high-level functionality with an API which is more suitable for Python code. This talk will give the audience a short introduction to pytest and explain how to test Python/Qt code using the pytest-qt plugin. It will also take a quick look at other useful pytest plugins which can be combined with pytest-qt.

Qt WEBSITE:
For more info Qt, visit our site
https://qt.io

RESOURCES:
For more videos from Qt visit our resource centre;
https://resources.qt.io

FOLLOW US ON SOCIAL:
FB:   / qt  
LI:   / 4788.  .
TW:   / qtproject  

THE Qt COMPANY
Design - Develop - Deploy