Skip to content

Commit 2f88238

Browse files
ploebers0h3yl
authored andcommitted
fix(python/sdk): Fix unit tests (#3626)
GitOrigin-RevId: 3fb189723f824f943f5011cd28ead00aa368780e
1 parent ce1a83d commit 2f88238

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/unit/test_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def test_reset_client_on_settings_change():
1010

1111
assert transcriber._client.settings.api_key == "before"
1212

13-
aai.settings.api_key = "after"
13+
# Reset it to "test" again. All other tests are also working with this value
14+
aai.settings.api_key = "test"
1415
transcriber = aai.Transcriber()
1516

16-
assert transcriber._client.settings.api_key == "after"
17+
assert transcriber._client.settings.api_key == "test"

tests/unit/test_realtime_transcriber.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def _disable_rw_threads(mocker: MockFixture):
2828
@pytest.mark.parametrize(
2929
"encoding,token,expected_header",
3030
[
31-
(None, None, {"Authorization": aai.settings.api_key}),
32-
(aai.AudioEncoding.pcm_s16le, None, {"Authorization": aai.settings.api_key}),
33-
(aai.AudioEncoding.pcm_mulaw, None, {"Authorization": aai.settings.api_key}),
31+
(None, None, {"Authorization": "test"}),
32+
(aai.AudioEncoding.pcm_s16le, None, {"Authorization": "test"}),
33+
(aai.AudioEncoding.pcm_mulaw, None, {"Authorization": "test"}),
3434
(None, "12345678", None),
3535
(aai.AudioEncoding.pcm_s16le, "12345678", None),
3636
],

0 commit comments

Comments
 (0)