@@ -345,9 +345,7 @@ def test_module(ctx, module=None, numprocesses=None, nocapture=False, params=Non
345
345
'api_tests/schemas' ,
346
346
'api_tests/providers' ,
347
347
'api_tests/preprints' ,
348
- 'api_tests/registrations' ,
349
- 'api_tests/registries_moderation' ,
350
- 'api_tests/users' ,
348
+
351
349
]
352
350
API_TESTS2 = [
353
351
'api_tests/cedar_metadata_records' ,
@@ -360,9 +358,7 @@ def test_module(ctx, module=None, numprocesses=None, nocapture=False, params=Non
360
358
'api_tests/requests' ,
361
359
'api_tests/resources' ,
362
360
'api_tests/schema_responses' ,
363
- 'api_tests/subscriptions' ,
364
- 'api_tests/waffle' ,
365
- 'api_tests/wb' ,
361
+
366
362
]
367
363
API_TESTS3 = [
368
364
'api_tests/actions' ,
@@ -391,8 +387,21 @@ def test_module(ctx, module=None, numprocesses=None, nocapture=False, params=Non
391
387
'api_tests/share' ,
392
388
'api_tests/wikis' ,
393
389
]
390
+ API_TESTS4 = [
391
+ 'api_tests/registrations' ,
392
+ 'api_tests/registries_moderation' ,
393
+ 'api_tests/subscriptions' ,
394
+ 'api_tests/users' ,
395
+ 'api_tests/waffle' ,
396
+ 'api_tests/wb' ,
397
+ ]
394
398
ADDON_TESTS = [
395
- 'addons' ,
399
+ 'addons/base' ,
400
+ 'addons/boa' ,
401
+ 'addons/forward' ,
402
+ 'addons/osfstorage' ,
403
+ 'addons/twofactor' ,
404
+ 'addons/wiki' ,
396
405
]
397
406
ADMIN_TESTS = [
398
407
'admin_tests' ,
@@ -408,8 +417,8 @@ def test_osf(ctx, numprocesses=None, coverage=False, testmon=False, junit=False)
408
417
@task
409
418
def test_website (ctx , numprocesses = None , coverage = False , testmon = False , junit = False ):
410
419
"""Run the old test suite."""
411
- print (f'Testing modules "{ WEBSITE_TESTS } "' )
412
- test_module (ctx , module = WEBSITE_TESTS , numprocesses = numprocesses , coverage = coverage , testmon = testmon , junit = junit )
420
+ print (f'Testing modules "{ WEBSITE_TESTS + API_TESTS4 } "' )
421
+ test_module (ctx , module = WEBSITE_TESTS + API_TESTS4 , numprocesses = numprocesses , coverage = coverage , testmon = testmon , junit = junit )
413
422
414
423
@task
415
424
def test_api1 (ctx , numprocesses = None , coverage = False , testmon = False , junit = False ):
@@ -428,9 +437,9 @@ def test_api2(ctx, numprocesses=None, coverage=False, testmon=False, junit=False
428
437
@task
429
438
def test_api3 (ctx , numprocesses = None , coverage = False , testmon = False , junit = False ):
430
439
"""Run the API test suite."""
431
- print (f'Testing modules "{ API_TESTS3 + OSF_TESTS } "' )
440
+ print (f'Testing modules "{ API_TESTS3 } "' )
432
441
# NOTE: There may be some concurrency issues with ES
433
- test_module (ctx , module = API_TESTS3 + OSF_TESTS , numprocesses = numprocesses , coverage = coverage , testmon = testmon , junit = junit )
442
+ test_module (ctx , module = API_TESTS3 , numprocesses = numprocesses , coverage = coverage , testmon = testmon , junit = junit )
434
443
435
444
436
445
@task
@@ -444,8 +453,8 @@ def test_admin(ctx, numprocesses=None, coverage=False, testmon=False, junit=Fals
444
453
def test_addons (ctx , numprocesses = None , coverage = False , testmon = False , junit = False ):
445
454
"""Run all the tests in the addons directory.
446
455
"""
447
- print (f'Testing modules "{ ADDON_TESTS + ADMIN_TESTS } "' )
448
- test_module (ctx , module = ADDON_TESTS + ADMIN_TESTS , numprocesses = numprocesses , coverage = coverage , testmon = testmon , junit = junit )
456
+ print (f'Testing modules "{ ADDON_TESTS + ADMIN_TESTS + OSF_TESTS } "' )
457
+ test_module (ctx , module = ADDON_TESTS + ADMIN_TESTS + OSF_TESTS , numprocesses = numprocesses , coverage = coverage , testmon = testmon , junit = junit )
449
458
450
459
451
460
@task
0 commit comments