Skip to content

Commit c388a99

Browse files
committed
Autodetect simpler project configurations with test_*.py in the dir directly
1 parent c8fd9f9 commit c388a99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mutmut/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,13 +1018,12 @@ def read_config():
10181018
also_copy=[
10191019
Path(y)
10201020
for y in s('also_copy', [])
1021-
]+[
1021+
] + [
10221022
Path('tests/'),
10231023
Path('test/'),
1024-
Path('tests.py'),
10251024
Path('setup.cfg'),
10261025
Path('pyproject.toml'),
1027-
],
1026+
] + list(Path('.').glob('test*.py')),
10281027
max_stack_depth=s('max_stack_depth', -1),
10291028
debug=s('debug', False),
10301029
paths_to_mutate=[

0 commit comments

Comments
 (0)