File tree 7 files changed +14
-14
lines changed
7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ def _session_tests(
207
207
session : nox .sessions .Session , post_install : Callable = None
208
208
) -> None :
209
209
# check for presence of tests
210
- test_list = glob .glob ("*_test.py" ) + glob .glob ("test_*.py" )
211
- test_list .extend (glob .glob ("tests" ))
210
+ test_list = glob .glob ("**/* _test.py" , recursive = True ) + glob .glob ("**/ test_*.py" , recursive = True )
211
+ test_list .extend (glob .glob ("**/ tests" , recursive = True ))
212
212
213
213
if len (test_list ) == 0 :
214
214
print ("No tests found, skipping directory." )
Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ def _session_tests(
207
207
session : nox .sessions .Session , post_install : Callable = None
208
208
) -> None :
209
209
# check for presence of tests
210
- test_list = glob .glob ("*_test.py" ) + glob .glob ("test_*.py" )
211
- test_list .extend (glob .glob ("tests" ))
210
+ test_list = glob .glob ("**/* _test.py" , recursive = True ) + glob .glob ("**/ test_*.py" , recursive = True )
211
+ test_list .extend (glob .glob ("**/ tests" , recursive = True ))
212
212
213
213
if len (test_list ) == 0 :
214
214
print ("No tests found, skipping directory." )
Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ def _session_tests(
207
207
session : nox .sessions .Session , post_install : Callable = None
208
208
) -> None :
209
209
# check for presence of tests
210
- test_list = glob .glob ("*_test.py" ) + glob .glob ("test_*.py" )
211
- test_list .extend (glob .glob ("tests" ))
210
+ test_list = glob .glob ("**/* _test.py" , recursive = True ) + glob .glob ("**/ test_*.py" , recursive = True )
211
+ test_list .extend (glob .glob ("**/ tests" , recursive = True ))
212
212
213
213
if len (test_list ) == 0 :
214
214
print ("No tests found, skipping directory." )
Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ def _session_tests(
207
207
session : nox .sessions .Session , post_install : Callable = None
208
208
) -> None :
209
209
# check for presence of tests
210
- test_list = glob .glob ("*_test.py" ) + glob .glob ("test_*.py" )
211
- test_list .extend (glob .glob ("tests" ))
210
+ test_list = glob .glob ("**/* _test.py" , recursive = True ) + glob .glob ("**/ test_*.py" , recursive = True )
211
+ test_list .extend (glob .glob ("**/ tests" , recursive = True ))
212
212
213
213
if len (test_list ) == 0 :
214
214
print ("No tests found, skipping directory." )
Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ def _session_tests(
207
207
session : nox .sessions .Session , post_install : Callable = None
208
208
) -> None :
209
209
# check for presence of tests
210
- test_list = glob .glob ("*_test.py" ) + glob .glob ("test_*.py" )
211
- test_list .extend (glob .glob ("tests" ))
210
+ test_list = glob .glob ("**/* _test.py" , recursive = True ) + glob .glob ("**/ test_*.py" , recursive = True )
211
+ test_list .extend (glob .glob ("**/ tests" , recursive = True ))
212
212
213
213
if len (test_list ) == 0 :
214
214
print ("No tests found, skipping directory." )
Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ def _session_tests(
207
207
session : nox .sessions .Session , post_install : Callable = None
208
208
) -> None :
209
209
# check for presence of tests
210
- test_list = glob .glob ("*_test.py" ) + glob .glob ("test_*.py" )
211
- test_list .extend (glob .glob ("tests" ))
210
+ test_list = glob .glob ("**/* _test.py" , recursive = True ) + glob .glob ("**/ test_*.py" , recursive = True )
211
+ test_list .extend (glob .glob ("**/ tests" , recursive = True ))
212
212
213
213
if len (test_list ) == 0 :
214
214
print ("No tests found, skipping directory." )
Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ def _session_tests(
207
207
session : nox .sessions .Session , post_install : Callable = None
208
208
) -> None :
209
209
# check for presence of tests
210
- test_list = glob .glob ("*_test.py" ) + glob .glob ("test_*.py" )
211
- test_list .extend (glob .glob ("tests" ))
210
+ test_list = glob .glob ("**/* _test.py" , recursive = True ) + glob .glob ("**/ test_*.py" , recursive = True )
211
+ test_list .extend (glob .glob ("**/ tests" , recursive = True ))
212
212
213
213
if len (test_list ) == 0 :
214
214
print ("No tests found, skipping directory." )
You can’t perform that action at this time.
0 commit comments