more tests for OpenFileDownloadTarget
This commit is contained in:
parent
71102cceb0
commit
1400a27508
@ -41,8 +41,13 @@ def test_fileobj():
|
|||||||
|
|
||||||
|
|
||||||
def test_openfile():
|
def test_openfile():
|
||||||
# Just make sure no error is raised, that should be enough.
|
target = usertypes.OpenFileDownloadTarget()
|
||||||
usertypes.OpenFileDownloadTarget()
|
assert target.cmdline is None
|
||||||
|
|
||||||
|
|
||||||
|
def test_openfile_custom_command():
|
||||||
|
target = usertypes.OpenFileDownloadTarget('echo')
|
||||||
|
assert target.cmdline == 'echo'
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('obj', [
|
@pytest.mark.parametrize('obj', [
|
||||||
|
Loading…
Reference in New Issue
Block a user