Example #1
0
def test_feedback_rest(mock_post):
    filename = join(dirname(__file__), "model-template-app", "contract.json")
    args_dict = {"contract": filename, "host": "a", "port": 1000, "n_requests": 1, "batch_size": 1,
                 "endpoint": "predict", "prnt": True,
                 "grpc": False, "tensor": True, "oauth_key": None, "oauth_secret": None, "deployment": "abc",
                 "namespace": None}
    args = Bunch(args_dict)
    run_send_feedback(args)
Example #2
0
def test_feedback_rest(mock_post):
    filename = os.path.join(RESOURCES_PATH, "model-template-app", "contract.json")
    args_dict = {
        "contract": filename,
        "host": "a",
        "port": 1000,
        "n_requests": 1,
        "batch_size": 1,
        "endpoint": "predict",
        "prnt": True,
        "grpc": False,
        "tensor": True,
        "deployment": "abc",
        "namespace": None,
    }
    args = Bunch(args_dict)
    run_send_feedback(args)