api-docs: Update python tests to not use "stream" in channel name.

Updates the channel names in python example tests to use "-channel"
instead of "_stream".

Part of stream to channel rename project.
This commit is contained in:
Lauryn Menard 2024-05-19 14:03:47 +02:00 committed by Tim Abbott
parent c77c37be27
commit 016ffd8078
1 changed files with 5 additions and 5 deletions

View File

@ -118,11 +118,11 @@ def test_add_subscriptions_already_subscribed(client: Client) -> None:
def test_authorization_errors_fatal(client: Client, nonadmin_client: Client) -> None: def test_authorization_errors_fatal(client: Client, nonadmin_client: Client) -> None:
client.add_subscriptions( client.add_subscriptions(
streams=[ streams=[
{"name": "private_stream"}, {"name": "private-channel"},
], ],
) )
stream_id = client.get_stream_id("private_stream")["stream_id"] stream_id = client.get_stream_id("private-channel")["stream_id"]
client.call_endpoint( client.call_endpoint(
f"streams/{stream_id}", f"streams/{stream_id}",
method="PATCH", method="PATCH",
@ -131,7 +131,7 @@ def test_authorization_errors_fatal(client: Client, nonadmin_client: Client) ->
result = nonadmin_client.add_subscriptions( result = nonadmin_client.add_subscriptions(
streams=[ streams=[
{"name": "private_stream"}, {"name": "private-channel"},
], ],
authorization_errors_fatal=False, authorization_errors_fatal=False,
) )
@ -140,7 +140,7 @@ def test_authorization_errors_fatal(client: Client, nonadmin_client: Client) ->
result = nonadmin_client.add_subscriptions( result = nonadmin_client.add_subscriptions(
streams=[ streams=[
{"name": "private_stream"}, {"name": "private-channel"},
], ],
authorization_errors_fatal=True, authorization_errors_fatal=True,
) )
@ -1135,7 +1135,7 @@ def get_read_receipts(client: Client, message_id: int) -> None:
def test_nonexistent_stream_error(client: Client) -> None: def test_nonexistent_stream_error(client: Client) -> None:
request = { request = {
"type": "stream", "type": "stream",
"to": "nonexistent_stream", "to": "nonexistent-channel",
"topic": "Castle", "topic": "Castle",
"content": "I come not, friends, to steal away your hearts.", "content": "I come not, friends, to steal away your hearts.",
} }