예제 #1
0
def main():
    tests = [
        test_session_id,
        test_collection,
        test_counts,
        test_get_all,
        test_entity_get_save,
        test_full,
        test_limit,
        test_include,
        test_include_traversal,
        test_include_plural,
        test_include_multi,
        test_find,
        test_target_dimensions,
        test_permissions,
        test_picard_meta,
        test_report_meta,
    ]

    t1 = setup(credentials(), False)
    print('running XML tests')
    for test in tests:
        test(t1)
        print("Passed test for {}".format(test.__name__.replace('test_', '')))
    print("Passed all XML tests!")

    t1 = setup(credentials(), True)

    print('running json tests')
    for test in tests:
        test(t1)
        print("Passed test for {}".format(test.__name__.replace('test_', '')))
    print("Passed all json tests!")
예제 #2
0
def main():
    tests = [
        test_session_id,
        test_collection,
        test_counts,
        test_get_all,
        test_entity_get_save,
        test_full,
        test_limit,
        test_include,
        test_include_traversal,
        test_include_plural,
        test_include_multi,
        test_find,
        test_target_dimensions,
        test_permissions,
        test_picard_meta,
        test_report_meta,
    ]

    t1 = setup(credentials(), False)
    print('running XML tests')
    for test in tests:
        test(t1)
        print("Passed test for {}".format(test.__name__.replace('test_', '')))
    print("Passed all XML tests!")

    t1 = setup(credentials(), True)

    print('running json tests')
    for test in tests:
        test(t1)
        print("Passed test for {}".format(test.__name__.replace('test_', '')))
    print("Passed all json tests!")
예제 #3
0
def main():
    tests = [
        test_session_id,
        test_collection,
        test_counts,
        test_get_all,
        test_entity_get_save,
        test_full,
        test_limit,
        test_include,
        test_include_traversal,
        test_include_plural,
        test_include_multi,
        test_find,
        test_permissions,
        test_picard_meta,
        test_report_meta,
    ]

    t1 = setup(credentials())
    for test in tests:
        test(t1)
        print("Passed test for {}".format(test.__name__.replace('test_', '')))
    else:
        print("Passed all tests!")
예제 #4
0
def main():
    t1 = setup(credentials())
    load_defaults('defaults.json')
    bootstrap_advertiser(t1)
예제 #5
0
def main():
    t1 = setup(credentials())
    load_defaults('defaults.json')
    bootstrap_advertiser(t1)