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()
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print "===== metadata_create() ====="
    metadata_create()
Beispiel #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()
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== metadata_delete() ====='
    metadata_delete()
Beispiel #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()
Beispiel #6
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== process_exception() ====='
    process_exception()
Beispiel #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()
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

    print '===== delete_all_bundles() ====='
    delete_all_bundles()
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()
Beispiel #10
0
def all_tests(apikey):
    """Set API key and call all test functions."""

    clarify.set_key(apikey)

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

    clarify.set_key(apikey)

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

    clarify.set_key(apikey)

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

    clarify.set_key(apikey)

    print '===== simple_search() ====='
    simple_search()
Beispiel #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
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()
Beispiel #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()
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()
Beispiel #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)