Skip to main content
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.

Release files for satin 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for satin 0.1.0
File Size Uploaded
satin-0.1.0.tar.gz 4.1 kB Details

Release files / satin-0.1.0.tar.gz

Download URL satin-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3ced78ebc6241c60fb30320c89ab90bc4ec8d18df6f66044fe593e044d251110
BLAKE2b-256 checksum
How to use checksums
bf58a4da7f27a1000af5a876472364fb5498ea85023edff1f61fb6922859b831
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page