blob: 18506f61783b8046cd8544edd573c4a9f9fec3b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import pytest
from conftest import assert_bash_exec
@pytest.mark.bashcomp(pre_cmds=("HOME=$PWD/lftp",))
class TestLftp:
@pytest.mark.complete("lftp ")
def test_1(self, bash, completion):
hosts = assert_bash_exec(
bash, "compgen -A hostname", want_output=True
).split()
assert all(x in completion for x in hosts)
assert "lftptest" in completion # defined in lftp/.lftp/bookmarks
|