Skip to content

Commit e1b8017

Browse files
Евгений БлиновЕвгений Блинов
authored andcommitted
Add "# noqa: ARG005" to test cases for unused arguments
1 parent 48ecd41 commit e1b8017

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

tests/helpers/test_is_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
def test_lambdas_are_lambdas():
55
assert is_lambda(lambda x: x)
6-
assert is_lambda(lambda x: None)
6+
assert is_lambda(lambda x: None) # noqa: ARG005
77
assert is_lambda(lambda: None)
88

99

tests/test_hash.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def function1():
9090
return 1234
9191

9292
@transformed
93-
def function2(a=5):
93+
def function2(a=5): # noqa: ARG001
9494
return 1234
9595

9696
@transformed
@@ -107,7 +107,7 @@ def function1():
107107
return 1234
108108

109109
@transformed
110-
def function2(a=5):
110+
def function2(a=5): # noqa: ARG001
111111
return 1234
112112

113113
@transformed
@@ -124,7 +124,7 @@ def function1():
124124
return 1234
125125

126126
@transformed
127-
def function2(a=5):
127+
def function2(a=5): # noqa: ARG001
128128
return 1234
129129

130130
@transformed
@@ -133,7 +133,7 @@ def function3():
133133
return 1234
134134

135135
@transformed
136-
def function4(a=5):
136+
def function4(a=5): # noqa: ARG001
137137
"""kek"""
138138
return 1234
139139

@@ -149,7 +149,7 @@ def function1():
149149
return 1234
150150

151151
@transformed
152-
def function2(a=5):
152+
def function2(a=5): # noqa: ARG001
153153
return 1234
154154

155155
@transformed
@@ -158,7 +158,7 @@ def function3():
158158
return 1234
159159

160160
@transformed
161-
def function4(a=5):
161+
def function4(a=5): # noqa: ARG001
162162
"""kek"""
163163
return 1234
164164

@@ -182,12 +182,12 @@ def function():
182182

183183
def test_hash_simple_lambda():
184184
lambda_hash = getsourcehash(lambda x: x)
185-
assert lambda_hash == '14FXP9'
185+
assert lambda_hash == 'HVND1V'
186186

187187

188188
def test_hash_lambda_only_body():
189189
first_hash = getsourcehash(lambda x: x, only_body=True)
190-
second_hash = getsourcehash(lambda x, y: x, only_body=True)
190+
second_hash = getsourcehash(lambda x, y: x, only_body=True) # noqa: ARG005
191191

192192
assert first_hash == '91MJ41'
193193
assert first_hash == second_hash

0 commit comments

Comments
 (0)