This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

QT app fixture for py.test

Project Description

Set up a Q Application for QT with an X-Window Virtual Framebuffer (Xvfb).

Installation

Install using your favourite package installer:

pip install pytest-qt-app
# or
easy_install pytest-qt-app

Enable the fixture explicitly in your tests or conftest.py (not required when using setuptools entry points):

pytest_plugins = ['pytest_qt_app']

Configuration

The fixtures are configured using the following evironment variables:

Setting Description Default
SERVER_FIXTURES_XVFB Xvfb server executable /usr/bin/Xvfb

Usage

Here’s a little test that shows it working:

from PyQt4 import Qtgui

def test_q_application(q_application):
    # This shows the display is connected properly to the Xvfb
    assert QtGui.QX11Info.display()

Changelog

1.0.1 (2015-12-23)

  • Packaging bugfix

1.0.0 (2015-12-21)

  • Initial public release
Release History

Release History

This version
History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pytest_qt_app-1.0.1-py2.7.egg (2.8 kB) Copy SHA256 Checksum SHA256 2.7 Egg Dec 23, 2015
pytest_qt_app-1.0.1-py2-none-any.whl (4.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 23, 2015
pytest-qt-app-1.0.1.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 Source Dec 23, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting