import pathlib
import pytest

@pytest.fixture(scope='session')
def repo_dir():
    return pathlib.Path(__file__).parent.parent.resolve()

@pytest.fixture(scope='session',
                params=['ra-100000', 'annulus'])
def example_dir(request, repo_dir):
    return repo_dir / 'Examples' / request.param

@@ -1,19 +1,4 @@
-import pathlib%0A
 impo
@@ -57,16 +57,35 @@
 _dir():%0A
+    import pathlib%0A
     retu

Move pathlib import in conftest