Skip to content

Commit 276d6f2

Browse files
committed
Add a test case for ChatInterface.title
1 parent 90f0efa commit 276d6f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_chat_interface.py

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def echo_system_prompt_plus_message(message, history, system_prompt, tokens):
4141

4242

4343
class TestInit:
44+
def test_default_title(self):
45+
chat = gr.ChatInterface(double)
46+
assert chat.title == "Gradio"
47+
4448
def test_no_fn(self):
4549
with pytest.raises(TypeError):
4650
gr.ChatInterface() # type: ignore

0 commit comments

Comments
 (0)