(name=__name__, file=__file__,
skip=('celery.decorators',
'celery.task'))
| 349 | |
| 350 | |
| 351 | def import_all_modules(name=__name__, file=__file__, |
| 352 | skip=('celery.decorators', |
| 353 | 'celery.task')): |
| 354 | for module in find_distribution_modules(name, file): |
| 355 | if not module.startswith(skip): |
| 356 | try: |
| 357 | import_module(module) |
| 358 | except ImportError: |
| 359 | pass |
| 360 | except OSError as exc: |
| 361 | warnings.warn(UserWarning( |
| 362 | 'Ignored error importing module {}: {!r}'.format( |
| 363 | module, exc, |
| 364 | ))) |
| 365 | |
| 366 | |
| 367 | @pytest.fixture |
no test coverage detected