File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 55import base64
66import datetime
77import io
8+ import uuid
89
910import pytest
1011import pytz
1819 target_summary ,
1920 wait_for_target_processed ,
2021)
21- from tests .mock_vws .utils .assertions import assert_vws_response
22+ from tests .mock_vws .utils .assertions import (
23+ assert_vws_failure ,
24+ assert_vws_response ,
25+ )
2226from tests .mock_vws .utils .authorization import VuforiaDatabaseKeys
2327
2428
@@ -242,3 +246,28 @@ def test_recognition(
242246 assert response .json ()['total_recos' ] == 0
243247 assert response .json ()['current_month_recos' ] == 0
244248 assert response .json ()['previous_month_recos' ] == 0
249+
250+
251+ @pytest .mark .usefixtures ('verify_mock_vuforia_inactive' )
252+ class TestInactiveProject :
253+ """
254+ Tests for inactive projects.
255+ """
256+
257+ def test_inactive_project (
258+ self ,
259+ inactive_database_keys : VuforiaDatabaseKeys ,
260+ ) -> None :
261+ """
262+ The project's active state does not affect getting a target.
263+ """
264+ response = target_summary (
265+ target_id = uuid .uuid4 ().hex ,
266+ vuforia_database_keys = inactive_database_keys ,
267+ )
268+
269+ assert_vws_failure (
270+ response = response ,
271+ status_code = codes .NOT_FOUND ,
272+ result_code = ResultCodes .UNKNOWN_TARGET ,
273+ )
You can’t perform that action at this time.
0 commit comments