File: conftest.py

package info (click to toggle)
python-logistro 2.0.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 204 kB
  • sloc: python: 350; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 243 bytes parent folder | download
1
2
3
4
5
6
7
8
import pytest

@pytest.fixture
def project_root(request):
    return request.config.getoption("--project-root")

def pytest_addoption(parser):
    parser.addoption("--project-root", action="store", default=None, help="Project root directory")