コード例 #1
0
def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:
    parser.addoption(
        "--savefig",
        action="store_true",
        default=False,
        help="Save figures when testing the plot functions.",
    )
コード例 #2
0
def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:

    # plugins/selenium
    parser.addoption("--driver",
                     choices=('chrome', 'firefox', 'safari'),
                     default='chrome',
                     help='webdriver implementation')

    # plugins/bokeh_server
    parser.addoption("--bokeh-port",
                     dest="bokeh_port",
                     type=int,
                     default=5006,
                     help="port on which Bokeh server resides")

    # plugins/jupyter_notebook
    parser.addoption("--notebook-port",
                     type=int,
                     default=6007,
                     help="port on which Jupyter Notebook server resides")

    parser.addoption("--examples-log-file",
                     dest="log_file",
                     metavar="path",
                     action="store",
                     default='examples.log',
                     help="where to write the complete log")
    parser.addoption("--no-js",
                     action="store_true",
                     default=False,
                     help="only run python code and skip js")
コード例 #3
0
def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:
    """Add pytest option."""
    parser.addoption(
        "--ini",
        action="store",
        metavar="INI_FILE",
        help="use INI_FILE to configure env.",
    )
コード例 #4
0
ファイル: conftest.py プロジェクト: NathanReb/tezos
def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:
    parser.addoption("--log-dir", action="store", help="specify log directory")
    parser.addoption(
        "--singleprocess",
        action='store_true',
        default=False,
        help="the node validates blocks using only one process,\
            useful for debugging",
    )
コード例 #5
0
def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:
    group = parser.getgroup("job selection", "Run tests in balanced batches")
    group.addoption(
        "--job",
        action="store",
        help="specify job (JOB/JOBS_TOTAL where 1 <= JOB <= JOBS_TOTAL)",
        type=regex_option_type(
            re.compile(r'(\d+)/(\d+)'),
            'The `--jobs` argument (value `%s`) should '
            'be on the form JOB/JOBS_TOTAL where 1 <= JOB <= '
            'JOBS_TOTAL',
        ),
    )
    group.addoption(
        "--prev-junit-xml",
        action="store",
        help="previous timings in JUnit XML report used for balancing",
    )
    group.addoption(
        "--jobs-dry-run",
        action='store_true',
        help="run no tests but debug balancing",
    )
コード例 #6
0
def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:
    parser.addoption(
        "--runslow", action="store_true", default=False, help="run slow tests"
    )
コード例 #7
0
def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:
    """Add options to pytest parser."""
    parser.addoption('--integration',
                     action='store_true',
                     help='run integration tests')
    parser.addoption('--smoke', action='store_true', help='run smoke tests')