Skip to content

Commit 62ee49e

Browse files
Merge pull request #3474 from VWS-Python/adamtheturtle/investigate-ci-job-failure
Explain Model Target account allowance failures
2 parents c2f7249 + 774cd3b commit 62ee49e

3 files changed

Lines changed: 451 additions & 76 deletions

File tree

tests/mock_vws/fixtures/model_target_prepared_requests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
)
1515
from tests.mock_vws.fixtures.vuforia_backends import VuforiaBackend
1616
from tests.mock_vws.utils import ModelTargetEndpoint
17+
from tests.mock_vws.utils.assertions import assert_model_target_status
1718

1819
MODEL_TARGET_VWS_HOST = "https://vws.vuforia.com"
1920
MODEL_TARGET_DATASET_UUID = "0b12466eee5d49409a440927006ff5d8"
@@ -72,7 +73,10 @@ def get_access_token(
7273
timeout=30,
7374
)
7475

75-
assert response.status_code == HTTPStatus.OK
76+
assert_model_target_status(
77+
response=response,
78+
status_codes=HTTPStatus.OK,
79+
)
7680
response_json: dict[str, Any] = json.loads(s=response.text)
7781
access_token = response_json["access_token"]
7882
assert isinstance(access_token, str)

0 commit comments

Comments
 (0)