Import lichtfeld module.
()
| 10 | |
| 11 | @pytest.fixture |
| 12 | def lf(): |
| 13 | """Import lichtfeld module.""" |
| 14 | project_root = Path(__file__).parent.parent.parent |
| 15 | build_python = project_root / "build" / "src" / "python" |
| 16 | if str(build_python) not in sys.path: |
| 17 | sys.path.insert(0, str(build_python)) |
| 18 | |
| 19 | try: |
| 20 | import lichtfeld |
| 21 | |
| 22 | return lichtfeld |
| 23 | except ImportError as e: |
| 24 | pytest.skip(f"lichtfeld module not available: {e}") |
| 25 | |
| 26 | |
| 27 | @pytest.fixture |