Created
February 12, 2019 05:17
-
-
Save CMCDragonkai/7987dc42ec780051c34120fe1c6347a7 to your computer and use it in GitHub Desktop.
Pytest Fixture for Project Root #python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from pathlib import Path | |
@pytest.fixture(scope='session') | |
def project_root(pytestconfig): | |
return Path(pytestconfig.rootdir) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment