Skip to main content

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


Download files

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

Source Distribution

satin-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file satin-0.1.0.tar.gz.

File metadata

  • Download URL: satin-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for satin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ced78ebc6241c60fb30320c89ab90bc4ec8d18df6f66044fe593e044d251110
MD5 e933573aa35c91083533fb6f471ff56b
BLAKE2b-256 bf58a4da7f27a1000af5a876472364fb5498ea85023edff1f61fb6922859b831

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page