Skip to content

Commit fa0f966

Browse files
committed
tests reshuffle
1 parent 034cef7 commit fa0f966

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

tasks/__init__.py

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,7 @@ def test_module(ctx, module=None, numprocesses=None, nocapture=False, params=Non
345345
'api_tests/schemas',
346346
'api_tests/providers',
347347
'api_tests/preprints',
348-
'api_tests/registrations',
349-
'api_tests/registries_moderation',
350-
'api_tests/users',
348+
351349
]
352350
API_TESTS2 = [
353351
'api_tests/cedar_metadata_records',
@@ -360,9 +358,7 @@ def test_module(ctx, module=None, numprocesses=None, nocapture=False, params=Non
360358
'api_tests/requests',
361359
'api_tests/resources',
362360
'api_tests/schema_responses',
363-
'api_tests/subscriptions',
364-
'api_tests/waffle',
365-
'api_tests/wb',
361+
366362
]
367363
API_TESTS3 = [
368364
'api_tests/actions',
@@ -391,8 +387,21 @@ def test_module(ctx, module=None, numprocesses=None, nocapture=False, params=Non
391387
'api_tests/share',
392388
'api_tests/wikis',
393389
]
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+
]
394398
ADDON_TESTS = [
395-
'addons',
399+
'addons/base',
400+
'addons/boa',
401+
'addons/forward',
402+
'addons/osfstorage',
403+
'addons/twofactor',
404+
'addons/wiki',
396405
]
397406
ADMIN_TESTS = [
398407
'admin_tests',
@@ -408,8 +417,8 @@ def test_osf(ctx, numprocesses=None, coverage=False, testmon=False, junit=False)
408417
@task
409418
def test_website(ctx, numprocesses=None, coverage=False, testmon=False, junit=False):
410419
"""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)
413422

414423
@task
415424
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
428437
@task
429438
def test_api3(ctx, numprocesses=None, coverage=False, testmon=False, junit=False):
430439
"""Run the API test suite."""
431-
print(f'Testing modules "{API_TESTS3 + OSF_TESTS}"')
440+
print(f'Testing modules "{API_TESTS3}"')
432441
# 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)
434443

435444

436445
@task
@@ -444,8 +453,8 @@ def test_admin(ctx, numprocesses=None, coverage=False, testmon=False, junit=Fals
444453
def test_addons(ctx, numprocesses=None, coverage=False, testmon=False, junit=False):
445454
"""Run all the tests in the addons directory.
446455
"""
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)
449458

450459

451460
@task

0 commit comments

Comments
 (0)