Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ltalirz committed Jan 18, 2020
1 parent d098df6 commit 883f87e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/tests/widgets/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 883f87e

Please sign in to comment.