(name=__name__, file=__file__,
skip=('celery.decorators',
'celery.task'))
| 328 | |
| 329 | |
| 330 | def import_all_modules(name=__name__, file=__file__, |
| 331 | skip=('celery.decorators', |
| 332 | 'celery.task')): |
| 333 | for module in find_distribution_modules(name, file): |
| 334 | if not module.startswith(skip): |
| 335 | try: |
| 336 | import_module(module) |
| 337 | except ImportError: |
| 338 | pass |
| 339 | except OSError as exc: |
| 340 | warnings.warn(UserWarning( |
| 341 | 'Ignored error importing module {}: {!r}'.format( |
| 342 | module, exc, |
| 343 | ))) |
| 344 | |
| 345 | |
| 346 | @pytest.fixture |
no test coverage detected