Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@

# Retry link checking to avoid transient network errors.
linkcheck_retries = 5
linkcheck_ignore = [
# Requires login.
"https://developer.vuforia.com/targetmanager",
]

spelling_word_list_filename = "../../spelling_private_dict.txt"

Expand Down
4 changes: 2 additions & 2 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ When this happens, create a new target database to use for testing.
To create databases without using the browser, use `vws web tools`_.
See https://github.com/VWS-Python/vws-python-mock/issues/901 for a start on how to use the database details created by that tool.

.. _Vuforia License Manager: https://developer.vuforia.com/targetmanager/licenseManager/licenseListing
.. _Vuforia Target Manager: https://developer.vuforia.com/targetmanager
.. _Vuforia License Manager: https://developer.vuforia.com/vui/develop/licenses
.. _Vuforia Target Manager: https://developer.vuforia.com/vui/develop/databases
.. _vws web tools: https://github.com/VWS-Python/vws-web-tools

Skipping Some Tests
Expand Down
2 changes: 1 addition & 1 deletion src/mock_vws/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class TargetStatuses(Enum):
Constants representing VWS target statuses.

See the 'status' field in
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Record
https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record
"""

PROCESSING = "processing"
Expand Down
18 changes: 9 additions & 9 deletions src/mock_vws/_flask_server/vws.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
A fake implementation of the Vuforia Web Services API.

See
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API
https://library.vuforia.com/web-api/cloud-targets-web-services-api
"""

import base64
Expand Down Expand Up @@ -144,7 +144,7 @@ def add_target() -> Response:
Add a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Add-a-Target
https://library.vuforia.com/web-api/cloud-targets-web-services-api#add
"""
settings = VWSSettings.model_validate(obj={})
databases = get_all_databases()
Expand Down Expand Up @@ -217,7 +217,7 @@ def get_target(target_id: str) -> Response:
Get details of a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Record
https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record
"""
databases = get_all_databases()
database = get_database_matching_server_keys(
Expand Down Expand Up @@ -271,7 +271,7 @@ def delete_target(target_id: str) -> Response:
Delete a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Delete-a-Target
https://library.vuforia.com/web-api/cloud-targets-web-services-api#delete
"""
settings = VWSSettings.model_validate(obj={})
databases = get_all_databases()
Expand Down Expand Up @@ -324,7 +324,7 @@ def database_summary() -> Response:
Get a database summary report.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Get-a-Database-Summary-Report
https://library.vuforia.com/web-api/cloud-targets-web-services-api#summary-report
"""
databases = get_all_databases()
database = get_database_matching_server_keys(
Expand Down Expand Up @@ -377,7 +377,7 @@ def target_summary(target_id: str) -> Response:
Get a summary report for a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Summary-Report
https://library.vuforia.com/web-api/cloud-targets-web-services-api#retrieve-report
"""
databases = get_all_databases()
database = get_database_matching_server_keys(
Expand Down Expand Up @@ -428,7 +428,7 @@ def get_duplicates(target_id: str) -> Response:
Get targets which may be considered duplicates of a given target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Check-for-Duplicate-Targets
https://library.vuforia.com/web-api/cloud-targets-web-services-api#check
"""
databases = get_all_databases()
settings = VWSSettings.model_validate(obj={})
Expand Down Expand Up @@ -488,7 +488,7 @@ def target_list() -> Response:
Get a list of all targets.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Get-a-Target-List-for-a-Cloud-Database
https://library.vuforia.com/web-api/cloud-targets-web-services-api#details-list
"""
databases = get_all_databases()
database = get_database_matching_server_keys(
Expand Down Expand Up @@ -529,7 +529,7 @@ def update_target(target_id: str) -> Response:
Update a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Update-a-Target
https://library.vuforia.com/web-api/cloud-targets-web-services-api#update
"""
settings = VWSSettings.model_validate(obj={})
# We do not use ``request.get_json(force=True)`` because this only works
Expand Down
14 changes: 7 additions & 7 deletions src/mock_vws/_requests_mock_server/mock_web_services_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def add_target(
Add a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Add-a-Target
https://library.vuforia.com/web-api/cloud-targets-web-services-api#add
"""
try:
run_services_validators(
Expand Down Expand Up @@ -208,7 +208,7 @@ def delete_target(
Delete a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Delete-a-Target
https://library.vuforia.com/web-api/cloud-targets-web-services-api#delete
"""
try:
run_services_validators(
Expand Down Expand Up @@ -275,7 +275,7 @@ def database_summary(
Get a database summary report.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Get-a-Database-Summary-Report
https://library.vuforia.com/web-api/cloud-targets-web-services-api#summary-report
"""
try:
run_services_validators(
Expand Down Expand Up @@ -341,7 +341,7 @@ def target_list(
Get a list of all targets.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Get-a-Target-List-for-a-Cloud-Database
https://library.vuforia.com/web-api/cloud-targets-web-services-api#details-list
"""
try:
run_services_validators(
Expand Down Expand Up @@ -398,7 +398,7 @@ def get_target(
Get details of a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Record
https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record
"""
try:
run_services_validators(
Expand Down Expand Up @@ -466,7 +466,7 @@ def get_duplicates(
Get targets which may be considered duplicates of a given target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Check-for-Duplicate-Targets
https://library.vuforia.com/web-api/cloud-targets-web-services-api#check
"""
try:
run_services_validators(
Expand Down Expand Up @@ -647,7 +647,7 @@ def target_summary(
Get a summary report for a target.

Fake implementation of
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Summary-Report
https://library.vuforia.com/web-api/cloud-targets-web-services-api#retrieve-report
"""
try:
run_services_validators(
Expand Down
2 changes: 1 addition & 1 deletion tests/mock_vws/test_get_duplicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_active_flag(
Targets with `active_flag` set to `False` can have duplicates.
Targets with `active_flag` set to `False` are not found as duplicates.

https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API#How-To-Check-for-Duplicate-Targets
https://library.vuforia.com/web-api/cloud-targets-web-services-api#check
says:

'''
Expand Down
2 changes: 1 addition & 1 deletion tests/mock_vws/test_get_target.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Tests for getting a target record.

https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Retrieve-a-Target-Record
https://library.vuforia.com/web-api/cloud-targets-web-services-api#target-record
"""
from __future__ import annotations

Expand Down