Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pdblp / pdblp / tests / conftest.py
Size: Mime:
def pytest_addoption(parser):
    parser.addoption(
        "--offline", action="store_true", default=False,
        help="Run tests in offline mode (has no BBG connection)"
    )
    parser.addoption(
        "--port", action="store", default=8194, type=int,
        help="Port to connect"
    )
    parser.addoption(
        "--host", action="store", default='localhost', help="Host to connect"
    )
    parser.addoption(
        "--timeout", action="store", default=5000, type=int,
        help="BCon.timeout value"
    )


def pytest_configure(config):
    config.cache.set('offline', config.getoption('--offline'))