Skip to content

Commit a105510

Browse files
authored
Merge pull request #1771 from WadeBarnes/ubuntu-20.04-upgrade
Fix linting errors
2 parents 74e6f54 + fd67411 commit a105510

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: .flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
ignore = N801, N802, N803, N806, N813, C901, E501, F401
2+
ignore = N801, N802, N803, N806, N813, C901, E501, F401, W605
33
exclude =
44
# common places
55
.git,__pycache__,docs/source/conf.py,old,build,dist,environment

Diff for: indy_common/test/test_util.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from indy_common.util import getIndex
55
from indy_common.util import compose_cmd
66

7+
78
def test_getIndex():
89
items = [('a', {'key1': 1}), ('b', {'key2': 2})]
910
getDict = itemgetter(1)
@@ -15,6 +16,7 @@ def containsKey(key):
1516
assert 1 == getIndex(containsKey('key2'), items)
1617
assert -1 == getIndex(containsKey('key3'), items)
1718

19+
1820
@pytest.mark.parametrize(
1921
'pkg_name,package',
2022
[
@@ -31,15 +33,17 @@ def test_compose_cmd(pkg_name, package):
3133
cmd = compose_cmd(['dpkg', '-s', package])
3234
assert expected_cmd == cmd
3335

36+
3437
def test_compose_cmd_allows_whitespace():
3538
pkg_name = 'package_7 some_other_package'
3639
expected_cmd = f'dpkg -s {pkg_name}'
3740
cmd = compose_cmd(['dpkg', '-s', pkg_name])
3841
assert expected_cmd == cmd
3942

43+
4044
def test_compose_cmd_allows_pipe():
4145
expected_cmd = 'dpkg --get-selections | grep -v deinstall | cut -f1'
4246
cmd = compose_cmd(
4347
['dpkg', '--get-selections', '|', 'grep', '-v', 'deinstall', '|', 'cut', '-f1']
4448
)
45-
assert expected_cmd == cmd
49+
assert expected_cmd == cmd

0 commit comments

Comments
 (0)