Skip to content

Commit 1de851c

Browse files
committed
Move access key to endpoint [skip ci]
1 parent 63dd39f commit 1de851c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/mock_vws/test_invalid_json.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from mock_vws._constants import ResultCodes
1313
from tests.mock_vws.utils import (
1414
TargetAPIEndpoint,
15-
VuforiaDatabaseKeys,
1615
assert_vws_failure,
1716
authorization_header,
1817
rfc_1123_date,
@@ -28,7 +27,6 @@ class TestInvalidJSON:
2827
@pytest.mark.parametrize('date_skew_minutes', [0, 10])
2928
def test_invalid_json(
3029
self,
31-
vuforia_database_keys: VuforiaDatabaseKeys,
3230
endpoint: TargetAPIEndpoint,
3331
date_skew_minutes: int,
3432
) -> None:
@@ -51,8 +49,8 @@ def test_invalid_json(
5149
endpoint_headers = dict(endpoint.prepared_request.headers)
5250

5351
authorization_string = authorization_header(
54-
access_key=vuforia_database_keys.server_access_key,
55-
secret_key=vuforia_database_keys.server_secret_key,
52+
access_key=endpoint.access_key,
53+
secret_key=endpoint.secret_key,
5654
method=str(endpoint.prepared_request.method),
5755
content=content,
5856
content_type=endpoint.auth_header_content_type,

0 commit comments

Comments
 (0)