示例#1
0
def config():
    return Config.load([CONFIG_DIR])
示例#2
0
def config():
    return Config.load(paths)
示例#3
0
def test_missing_file():
    config = Config.load([DIR_NAME])
    assert config.file_path is None
示例#4
0
def test_find_file():
    # navigates up to find dir tree the config file
    httpbin_data = os.path.join(DIR_NAME, "httpbin/data")
    httpbin_config = os.path.join(DIR_NAME, "httpbin/rigor.yml")
    config = Config.load([httpbin_data])
    assert config.file_path == httpbin_config
示例#5
0
def root():
    return Config.load([CONFIG_DIR])
示例#6
0
def test_asgi():
    config = Config.load(paths)
    suite = Suite.create(paths, config, app=asgi, concurrency=1, retries=0)
    result = execute(suite)
    assert result.success