Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.
VWS-PythonPublic archive

About

Test fixtures for VWS tools

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Build Status PyPI

VWS Test Fixtures

Important

This project is archived because PTC is retiring the Vuforia Engine Cloud Image Recognition service on May 2, 2027. Existing customers can continue using the service until that date. After that date, Cloud Image Recognition databases and associated services will no longer be available.

pytest fixtures for testing tools with the Vuforia Web Services (VWS) API.

Installation

pip install vws-test-fixtures

This is tested on Python 3.13+.

Example usage

"""Run a test which uses a high quality image."""

import io


def test_high_quality_image(high_quality_image: io.BytesIO) -> None:
    """Test that a high quality image is given."""
    image_file_bytes = high_quality_image.getvalue()
    minimum_image_size = 1000
    assert len(image_file_bytes) >= minimum_image_size

high_quality_image returns an image file which is expected to have a 'success' status when added to a target, and a high tracking rating.

image_file_failed_state is expected to be accepted by the add and update target endpoints, but get a "failed" status.

png_too_large is a PNG which has dimensions whcih are too large to be added to a Vuforia database.

... and more, see the full documentation for details of all fixtures provided.

Full Documentation

See the full documentation.

About

Test fixtures for VWS tools

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages