Skip to content

Commit 3e7d089

Browse files
authored
Merge pull request scop#563 from scop/style/test-redundant-require-cmd
style(test): remove redundant require_cmd with require_longopt
2 parents 06b655c + 074ff4c commit 3e7d089

8 files changed

+8
-14
lines changed

test/t/test_2to3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ class Test2to3:
66
def test_1(self, completion):
77
assert completion
88

9-
@pytest.mark.complete("2to3 -", require_cmd=True, require_longopt=True)
9+
@pytest.mark.complete("2to3 -", require_longopt=True)
1010
def test_2(self, completion):
1111
assert completion

test/t/test_cpan2dist.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33

44
class TestCpan2dist:
5-
@pytest.mark.complete(
6-
"cpan2dist -", require_cmd=True, require_longopt=True
7-
)
5+
@pytest.mark.complete("cpan2dist -", require_longopt=True)
86
def test_1(self, completion):
97
assert completion

test/t/test_dmypy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ def test_commands(self, completion):
99
assert "help" in completion
1010
assert not any("," in x for x in completion)
1111

12-
@pytest.mark.complete("dmypy -", require_cmd=True, require_longopt=True)
12+
@pytest.mark.complete("dmypy -", require_longopt=True)
1313
def test_options(self, completion):
1414
assert "--help" in completion

test/t/test_isort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ class TestIsort:
66
def test_1(self, completion):
77
assert completion
88

9-
@pytest.mark.complete("isort -", require_cmd=True, require_longopt=True)
9+
@pytest.mark.complete("isort -", require_longopt=True)
1010
def test_2(self, completion):
1111
assert completion

test/t/test_jsonschema.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ class TestJsonschema:
66
def test_1(self, completion):
77
assert completion
88

9-
@pytest.mark.complete(
10-
"jsonschema -", require_cmd=True, require_longopt=True
11-
)
9+
@pytest.mark.complete("jsonschema -", require_longopt=True)
1210
def test_2(self, completion):
1311
assert completion

test/t/test_mypy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class TestMypy:
66
def test_1(self, completion):
77
assert completion
88

9-
@pytest.mark.complete("mypy --", require_cmd=True, require_longopt=True)
9+
@pytest.mark.complete("mypy --", require_longopt=True)
1010
def test_2(self, completion):
1111
assert completion
1212

test/t/test_pydocstyle.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ class TestPydocstyle:
66
def test_1(self, completion):
77
assert completion
88

9-
@pytest.mark.complete(
10-
"pydocstyle -", require_cmd=True, require_longopt=True
11-
)
9+
@pytest.mark.complete("pydocstyle -", require_longopt=True)
1210
def test_2(self, completion):
1311
assert completion

test/t/test_pylint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class TestPylint:
5-
@pytest.mark.complete("pylint --v", require_cmd=True, require_longopt=True)
5+
@pytest.mark.complete("pylint --v", require_longopt=True)
66
def test_1(self, completion):
77
assert completion
88

0 commit comments

Comments
 (0)