예제 #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_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