示例#1
0
def test_path_context():
    pipeline_config = get_primary_pipeline_config(test_path)
    pipeline_path = pipeline_config.get(platform_lookup[sys.platform])
    append_pipeline_sgtk(pipeline_path)

    tk = get_tk(test_path)

    # Here our toolkit object is already authenticated in the pipeline configuration, yours may vary.
    context = tk.context_from_path(test_path)

    print context
示例#2
0
def test_get_prime_pc():
    assert os.path.isdir(get_primary_pipeline_config(test_path).get(platform_lookup[sys.platform]))
示例#3
0
def test_pipeline_path():
    pipeline_config = get_primary_pipeline_config(test_path)
    pipeline_path = pipeline_config.get(platform_lookup[sys.platform])
    assert pipeline_path
示例#4
0
def test_get_pipeline_python():
    pipeline_config = get_primary_pipeline_config(test_path)
    pipeline_path = pipeline_config.get(platform_lookup[sys.platform])
    append_pipeline_sgtk(pipeline_path)
    tk = get_tk(test_path)
    assert tk
示例#5
0
def test_pipeline_config():
    pipeline_config = get_primary_pipeline_config(test_path)
    assert pipeline_config