diff options
| author | Eric Lin <anselor@gmail.com> | 2021-08-19 17:22:11 -0400 |
|---|---|---|
| committer | anselor <anselor@gmail.com> | 2021-08-23 14:17:12 -0400 |
| commit | 0641c902df0778774768c55ddcca3a518f13e191 (patch) | |
| tree | d600d48be3e4e4d8f019024301fe2a7defc3832e /tests | |
| parent | 49805324772ec5fcd06217f4f0a241a9a8d07960 (diff) | |
| download | cmd2-git-0641c902df0778774768c55ddcca3a518f13e191.tar.gz | |
Applied black format
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_argparse_completer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_argparse_completer.py b/tests/test_argparse_completer.py index 11745429..11ae2a42 100644 --- a/tests/test_argparse_completer.py +++ b/tests/test_argparse_completer.py @@ -1149,7 +1149,6 @@ def test_complete_standalone(ac_app, flag, completions): class CustomCompleter(argparse_completer.ArgparseCompleter): - def _complete_flags(self, text: str, line: str, begidx: int, endidx: int, matched_flags: List[str]) -> List[str]: """Override so arguments with 'always_complete' set to True will always be completed""" for flag in matched_flags: @@ -1171,6 +1170,7 @@ class CustomCompleterApp(cmd2.Cmd): """Test command that will be manually wrapped to use argparse""" print(args) + @pytest.fixture def custom_completer_app(): @@ -1180,6 +1180,7 @@ def custom_completer_app(): yield app argparse_completer.set_default_command_completer_type(argparse_completer.ArgparseCompleter) + @pytest.mark.parametrize( 'command_and_args, text, output_contains, first_match', [ |
