conftest.py 244 Bytes
Newer Older
1
2
3
4
5
6
7
8
import os

TESTS_DIR = os.path.dirname(__file__)
default_exec_file = os.path.abspath(os.path.join(TESTS_DIR, '..', '..', 'lightgbm'))


def pytest_addoption(parser):
    parser.addoption('--execfile', action='store', default=default_exec_file)