From 883f87e21ec632b0fae989f5fb350dfb575afef9 Mon Sep 17 00:00:00 2001 From: Leopold Talirz Date: Sat, 18 Jan 2020 01:15:29 +0100 Subject: [PATCH] add test --- panel/tests/widgets/test_input.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panel/tests/widgets/test_input.py b/panel/tests/widgets/test_input.py index 9423b971ad..0f034e2770 100644 --- a/panel/tests/widgets/test_input.py +++ b/panel/tests/widgets/test_input.py @@ -59,10 +59,11 @@ def test_file_input(document, comm): assert isinstance(widget, BkFileInput) - file_input._comm_change({'mime_type': 'text/plain', 'value': 'U29tZSB0ZXh0Cg=='}) + file_input._comm_change({'mime_type': 'text/plain', 'value': 'U29tZSB0ZXh0Cg==', 'filename': 'testfile'}) assert file_input.value == b'Some text\n' assert file_input.mime_type == 'text/plain' assert file_input.accept == '.txt' + assert file_input.filename == 'testfile' def test_literal_input(document, comm):