File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -83,3 +83,29 @@ def test_processed(
8383 status_code = codes .NOT_FOUND ,
8484 result_code = ResultCodes .UNKNOWN_TARGET ,
8585 )
86+
87+
88+ @pytest .mark .usefixtures ('verify_mock_vuforia_inactive' )
89+ class TestInactiveProject :
90+ """
91+ Tests for inactive projects.
92+ """
93+
94+ def test_inactive_project (
95+ self ,
96+ inactive_database_keys : VuforiaDatabaseKeys ,
97+ ) -> None :
98+ """
99+ If the project is inactive, a FORBIDDEN response is returned.
100+ """
101+ target_id = 'does_not_exist'
102+ response = delete_target (
103+ vuforia_database_keys = inactive_database_keys ,
104+ target_id = target_id ,
105+ )
106+
107+ assert_vws_failure (
108+ response = response ,
109+ status_code = codes .FORBIDDEN ,
110+ result_code = ResultCodes .PROJECT_INACTIVE ,
111+ )
You can’t perform that action at this time.
0 commit comments