Skip to content

Commit 1b58c6e

Browse files
committed
Passing test on real for delete
1 parent 3e8b454 commit 1b58c6e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/mock_vws/test_delete_target.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
)

0 commit comments

Comments
 (0)