We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f575693 commit 541f7b1Copy full SHA for 541f7b1
test/t/test_function.py
@@ -1,7 +1,19 @@
1
import pytest
2
3
+from conftest import assert_bash_exec, assert_complete
4
5
+
6
+@pytest.mark.bashcomp(ignore_env=r"^\+declare -f fn$")
7
class TestFunction:
8
@pytest.mark.complete("function _parse_")
9
def test_1(self, completion):
10
assert completion
11
12
+ @pytest.mark.complete("function non_existent_function ")
13
+ def test_2(self, completion):
14
+ assert completion == "()"
15
16
+ def test_3(self, bash):
17
+ assert_bash_exec(bash, "fn() { echo; }")
18
+ completion = assert_complete(bash, "function fn ")
19
+ assert completion == "() { ^J echo^J}"
0 commit comments