mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
subject -> topic: Fix tornado tests.
This commit is contained in:
@@ -20,6 +20,7 @@ from tornado.httpclient import HTTPRequest, HTTPResponse
|
|||||||
|
|
||||||
from zerver.lib.test_helpers import POSTRequestMock
|
from zerver.lib.test_helpers import POSTRequestMock
|
||||||
from zerver.lib.test_classes import ZulipTestCase
|
from zerver.lib.test_classes import ZulipTestCase
|
||||||
|
from zerver.lib.topic import TOPIC_NAME
|
||||||
|
|
||||||
from zerver.models import UserProfile, get_client
|
from zerver.models import UserProfile, get_client
|
||||||
|
|
||||||
@@ -338,7 +339,7 @@ class TornadoTestCase(WebSocketBaseTestCase):
|
|||||||
"request": {
|
"request": {
|
||||||
"client": "website",
|
"client": "website",
|
||||||
"type": "private",
|
"type": "private",
|
||||||
"subject": "(no topic)",
|
TOPIC_NAME: "(no topic)",
|
||||||
"stream": "",
|
"stream": "",
|
||||||
"private_message_recipient": self.example_email('othello'),
|
"private_message_recipient": self.example_email('othello'),
|
||||||
"content": "hello",
|
"content": "hello",
|
||||||
@@ -372,7 +373,7 @@ class TornadoTestCase(WebSocketBaseTestCase):
|
|||||||
"request": {
|
"request": {
|
||||||
"client": "website",
|
"client": "website",
|
||||||
"type": "stream",
|
"type": "stream",
|
||||||
"subject": "Stream message",
|
TOPIC_NAME: "Stream message",
|
||||||
"stream": "Denmark",
|
"stream": "Denmark",
|
||||||
"private_message_recipient": "",
|
"private_message_recipient": "",
|
||||||
"content": "hello",
|
"content": "hello",
|
||||||
@@ -406,7 +407,7 @@ class TornadoTestCase(WebSocketBaseTestCase):
|
|||||||
"request": {
|
"request": {
|
||||||
"client": "website",
|
"client": "website",
|
||||||
"type": "stream",
|
"type": "stream",
|
||||||
"subject": "Stream message",
|
TOPIC_NAME: "Stream message",
|
||||||
"stream": "Denmark",
|
"stream": "Denmark",
|
||||||
"private_message_recipient": "",
|
"private_message_recipient": "",
|
||||||
"content": "hello",
|
"content": "hello",
|
||||||
@@ -441,7 +442,7 @@ class TornadoTestCase(WebSocketBaseTestCase):
|
|||||||
"request": {
|
"request": {
|
||||||
"client": "website",
|
"client": "website",
|
||||||
"type": "stream",
|
"type": "stream",
|
||||||
"subject": "Stream message",
|
TOPIC_NAME: "Stream message",
|
||||||
"stream": "Denmark",
|
"stream": "Denmark",
|
||||||
"private_message_recipient": "",
|
"private_message_recipient": "",
|
||||||
"content": "hello",
|
"content": "hello",
|
||||||
|
|||||||
Reference in New Issue
Block a user