| Conditions | 3 |
| Total Lines | 10 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from importlib import import_module |
||
| 35 | def test_pipeline_importability(): |
||
| 36 | error = None |
||
| 37 | for m in ["egon.data.airflow.dags.pipeline"]: |
||
| 38 | try: |
||
| 39 | import_module(m) |
||
| 40 | except Exception as e: |
||
| 41 | error = e |
||
| 42 | assert error is None, ( |
||
| 43 | "\nDid not expect an error when importing:\n\n `{}`\n\nGot: {}" |
||
| 44 | ).format(m, error) |
||
| 45 |