subject -> topic: Fix most of api_test_helpers.

We don't want to change anything that can end
up in docs yet, but for test setup, we can switch
to topic_name.
This commit is contained in:
Steve Howell
2018-11-10 21:49:43 +00:00
committed by Tim Abbott
parent 44cbcdf00c
commit b666a6bd6c

View File

@@ -316,7 +316,7 @@ def toggle_mute_topic(client):
message = {
'type': 'stream',
'to': 'Denmark',
'subject': 'boat party'
'topic': 'boat party'
}
client.call_endpoint(
url='messages',
@@ -509,7 +509,7 @@ def test_nonexistent_stream_error(client):
request = {
"type": "stream",
"to": "nonexistent_stream",
"subject": "Castle",
"topic": "Castle",
"content": "I come not, friends, to steal away your hearts."
}
result = client.send_message(request)
@@ -562,7 +562,7 @@ def test_update_message_edit_permission_error(client, nonadmin_client):
request = {
"type": "stream",
"to": "Denmark",
"subject": "Castle",
"topic": "Castle",
"content": "I come not, friends, to steal away your hearts."
}
result = client.send_message(request)
@@ -592,7 +592,7 @@ def test_delete_message_edit_permission_error(client, nonadmin_client):
request = {
"type": "stream",
"to": "Denmark",
"subject": "Castle",
"topic": "Castle",
"content": "I come not, friends, to steal away your hearts."
}
result = client.send_message(request)
@@ -629,7 +629,7 @@ def update_message_flags(client):
request = {
"type": "stream",
"to": "Denmark",
"subject": "Castle",
"topic": "Castle",
"content": "I come not, friends, to steal away your hearts."
} # type: Dict[str, Any]
message_ids = []