Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

UI testing library for PyQt

Project description

satin-python
============

satin-python is simple UI matcher and driver library, built on top of hamcrest and PyQt

Usage
=====

Finding specific widget
-----------------------
To find a specific widget, use function widget:

sub_widget = widget(dialog,
matcher)

Where dialog is Qt object to examine and matcher is hamcrest matcher capable
of detecting specific widget.

Labels
------
To check that a widget has label with text 'Title':

assert_that(item, has_label('Title'))

Event loop
----------
To start event loop, use @satin_suite class decorator. This will modify your
test class to start QApplication behind the scenes in order to have the event
loop running. When the test method completes, QApplication is automatically
shutdown.

@satin_suite
def TestWidget():
def test_clicking_around():
...

License
=======
satin-python is copyrighted by Tuukka Turto and is placed under
GNU General Public License. For more information, please refer to license.txt
found in the main folder.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for satin, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size satin-0.1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page