Skip to content

Commit ad68e4b

Browse files
committed
Also search for *_test.py, since it seems pytest tries these
1 parent 679b382 commit ad68e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: hammett/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def handle_dir(result, d):
269269
for root, dirs, files in os.walk(d):
270270
files = [
271271
f for f in files
272-
if f.endswith('__tests.py') or (f.startswith('test_') and f.endswith('.py'))
272+
if f.endswith('__tests.py') or (f.startswith('test_') and f.endswith('.py')) or f.endswith('_test.py')
273273
]
274274
result.extend(join(root, x) for x in files)
275275

0 commit comments

Comments
 (0)