Skip to content

Commit

Permalink
Merge pull request #1105 from akinomyoga/fix-test-who
Browse files Browse the repository at this point in the history
test: fix test failures
  • Loading branch information
akinomyoga authored Feb 16, 2024
2 parents 45dd86f + d8cadfe commit 0fc0af2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 6 additions & 2 deletions completions/xfreerdp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ _comp_cmd_xfreerdp()

case $cur in
/kbd:*)
_comp_compgen -c "${cur#/kbd:}" split -- "$("$1" /kbd-list |
_comp_awk '/^0x/ { print $1 }')"
local kbd_list
kbd_list=$("$1" /kbd-list 2>/dev/null) ||
kbd_list=$("$1" /list:kbd 2>/dev/null)
_comp_compgen -c "${cur#/kbd:}" split -- "$(
_comp_awk '/^0x/ { print $1 }' <<<"$kbd_list"
)"
return
;;
/bpp:*)
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tool.ruff]
line-length = 79
target-version = "py37"
select = ["E", "F", "B"]
ignore = [
lint.select = ["E", "F", "B"]
lint.ignore = [
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
# (keep order of ignores here same as ^there for maintainability)
"W191",
Expand All @@ -23,6 +23,6 @@ ignore = [
]
fix = true

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["conftest"]
known-third-party = ["pexpect", "pytest"]
4 changes: 1 addition & 3 deletions test/t/test_who.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@


class TestWho:
@pytest.mark.complete(
"who --", require_cmd=True, xfail="! who --help &>/dev/null"
)
@pytest.mark.complete("who --", require_longopt=True)
def test_1(self, completion):
assert completion

0 comments on commit 0fc0af2

Please sign in to comment.