예제 #1
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== track_create_and_list() ====='
    track_create_and_list()
예제 #2
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print "===== metadata_create() ====="
    metadata_create()
예제 #3
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== track_create_and_list() ====='
    track_create_and_list()
예제 #4
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== metadata_delete() ====='
    metadata_delete()
예제 #5
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== create_15_bundles() ====='
    create_15_bundles()
예제 #6
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== process_exception() ====='
    process_exception()
예제 #7
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== update_all_bundle_names() ====='
    update_all_bundle_names()
예제 #8
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== delete_all_bundles() ====='
    delete_all_bundles()
예제 #9
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== update_all_bundle_names() ====='
    update_all_bundle_names()
예제 #10
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== metadata_create() ====='
    metadata_create()
예제 #11
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== delete_all_bundles() ====='
    delete_all_bundles()
예제 #12
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== simple_search() ====='
    simple_search()
예제 #13
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== simple_search() ====='
    simple_search()
예제 #14
0
def set_key():
    """NB: This should really be an initialization function."""

    global KEY_SET

    if KEY_SET is False:
        api_key = os.environ['API_KEY']
        clarify.set_key(api_key)
        KEY_SET = True
예제 #15
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== delete_track_using_index() ====='
    delete_track_using_index()
    print '===== delete_all_tracks() ====='
    delete_all_tracks()
    print '===== delete_track_using_href() ====='
    delete_track_using_href()
예제 #16
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== get_first_page_hrefs() ====='
    get_first_page_hrefs()
    print '===== get_all_bundle_hrefs() ====='
    get_all_bundle_hrefs()
    print '===== get_all_bundles() ====='
    get_all_bundles()
예제 #17
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== delete_track_using_index() ====='
    delete_track_using_index()
    print '===== delete_all_tracks() ====='
    delete_all_tracks()
    print '===== delete_track_using_href() ====='
    delete_track_using_href()
예제 #18
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== get_first_page_hrefs() ====='
    get_first_page_hrefs()
    print '===== get_all_bundle_hrefs() ====='
    get_all_bundle_hrefs()
    print '===== get_all_bundles() ====='
    get_all_bundles()
 def __init__(self, api_key):
     clarify.set_key(api_key)