Example #1
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")
Example #2
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.",
    )
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.",
    )
Example #4
0
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",
    )
Example #5
0
def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:
    parser.addoption(
        "--runslow", action="store_true", default=False, help="run slow tests"
    )
Example #6
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')