Skip to content

VWS-Python/vws-test-fixtures

Repository files navigation

Build Status codecov PyPI Documentation Status

VWS Test Fixtures

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

Installation

pip install vws-test-fixtures

This is tested on Python 3.12+.

Example usage

import io

# A test to be run by pytest
def test_example(high_quality_image: io.BytesIO) -> None:
    image_file_bytes = high_quality_image.getvalue()
    ...

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.