Skip to content

Commit e0ad362

Browse files
authored
fix remove unnecessary tests due to sandbox behaviour (#119)
1 parent 04baf27 commit e0ad362

1 file changed

Lines changed: 0 additions & 44 deletions

File tree

tests/test_biometric_tokens.py

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -132,29 +132,6 @@ def test_invalidate_biometric_token_success(onfido_api, biometric_customer_user_
132132
assert response.status == 200
133133

134134

135-
def test_invalidate_biometric_token_not_found_when_already_deleted(
136-
onfido_api,
137-
biometric_customer_user_id,
138-
biometric_token_id,
139-
):
140-
onfido_api.invalidate_biometric_token_without_preload_content(
141-
biometric_customer_user_id,
142-
biometric_token_id,
143-
)
144-
145-
with pytest.raises(ApiException) as exc_info:
146-
onfido_api.invalidate_biometric_token(
147-
biometric_customer_user_id,
148-
biometric_token_id,
149-
)
150-
151-
error_response = json.loads(exc_info.value.body)
152-
153-
assert exc_info.value.status == 404
154-
assert error_response["error"]["message"] == "Not found"
155-
assert error_response["error"]["type"] == "resource_not_found"
156-
157-
158135
def test_invalidate_biometric_tokens_success(
159136
onfido_api,
160137
biometric_customer_user_id,
@@ -165,24 +142,3 @@ def test_invalidate_biometric_tokens_success(
165142
)
166143

167144
assert response.status == 200
168-
169-
170-
def test_invalidate_biometric_tokens_not_found_when_already_deleted(
171-
onfido_api,
172-
biometric_customer_user_id,
173-
create_biometric_token,
174-
):
175-
onfido_api.invalidate_biometric_tokens_without_preload_content(
176-
biometric_customer_user_id
177-
)
178-
179-
with pytest.raises(ApiException) as exc_info:
180-
onfido_api.invalidate_biometric_tokens(
181-
biometric_customer_user_id
182-
)
183-
184-
error_response = json.loads(exc_info.value.body)
185-
186-
assert exc_info.value.status == 404
187-
assert error_response["error"]["message"] == "Not found"
188-
assert error_response["error"]["type"] == "resource_not_found"

0 commit comments

Comments
 (0)