Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tkpd-hafizhan committed Oct 1, 2023
1 parent 3740c6e commit f230bda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions python/sdk/merlin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ def standard_transformer_simulate(
headers: dict,
config: dict,
model_prediction_config: dict,
protocol: Protocol,
protocol: Protocol = Protocol.HTTP_JSON,
):
request = StandardTransformerSimulationRequest(
payload=payload,
headers=headers,
config=config,
model_prediction_config=model_prediction_config,
protocol="HTTP_JSON",
protocol=protocol,
)

return self._standard_transformer_api.standard_transformer_simulate_post(
Expand Down
2 changes: 1 addition & 1 deletion python/sdk/merlin/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _transformer_config_env_var(self):
def simulate(
self,
payload: Dict,
headers: Dict = None,
headers: Dict = Dict,
model_prediction_config: Dict = None,
protocol: Protocol = Protocol.HTTP_JSON,
exclude_tracing: bool = False,
Expand Down
10 changes: 5 additions & 5 deletions python/sdk/test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ def test_standard_transformer_simulate(integration_test_url, use_google_oauth):
resp_wo_tracing = transformer.simulate(payload=payload, exclude_tracing=True)
resp_w_tracing = transformer.simulate(payload=payload, exclude_tracing=False)

resp_valid_wo_tracing = {
exp_resp_valid_wo_tracing = {
"response": {
"instances": {
"columns": [
Expand All @@ -1187,7 +1187,7 @@ def test_standard_transformer_simulate(integration_test_url, use_google_oauth):
}
}

resp_valid_w_tracing = {
exp_resp_valid_w_tracing = {
"response": {
"instances": {
"columns": [
Expand Down Expand Up @@ -1444,6 +1444,6 @@ def test_standard_transformer_simulate(integration_test_url, use_google_oauth):
assert "response" in resp_wo_tracing.keys()
assert "response" in resp_w_tracing.keys()
assert "operation_tracing" not in resp_wo_tracing.keys()
assert "operation_tracing" in resp_wo_tracing.keys()
assert resp_wo_tracing == resp_valid_wo_tracing
assert resp_w_tracing == resp_valid_w_tracing
assert "operation_tracing" in resp_w_tracing.keys()
assert resp_wo_tracing == exp_resp_valid_wo_tracing
assert resp_w_tracing == exp_resp_valid_w_tracing

0 comments on commit f230bda

Please sign in to comment.