Exemple #1
0
def test_user_utils():
    start_print()
    list_models()
    stop_print()
    list_models()
    start_print()
Exemple #2
0
    docs = {'name': "SDCARegressor test"}
    fv = X[0, :]
    upload(mod, fv, docs)





if __name__ == '__main__':

    if not RUN_TESTS:
        print("Not running tests.")
        exit()

    if not PRINTING:
        stop_print()

    if DEBUG:
        _toggle_debug_mode()

    # Remove:
    # remove_credentials()

    # Set correct endpoints
    _set_toolchain_URL(TOOLCHAIN_URL)
    _set_usermanager_URL(ADMIN_URL)

    print("Running tests off all supported models. This might take some time")
    print("===============================")

    print("# Statsmodels:")
Exemple #3
0
    list_models()
    start_print()


# Run tests
if __name__ == '__main__':

    if not RUN_TESTS:
        print("Not running tests.")
        exit()

    # Set target urls (and effectively test).
    test_setting_URLs()

    if not PRINTING:
        stop_print()  # serves as test and works.

    if DEBUG:
        _toggle_debug_mode()  # serves as test

    print("Running simple functional tests of main.py")
    print("===============================")

    test_upload()  # upload sklearn and onnx test

    print("Wait, toolchain needs to finish....")
    time.sleep(10)

    test_update()  # update sklearn and onnx test
    test_update_docs()  # update only docs test
    test_assign_functions()  # test creating and removing assignments