Skip to content

Commit

Permalink
test: update unit test to test for binary vs MOJO
Browse files Browse the repository at this point in the history
  • Loading branch information
thebrianbn committed Sep 26, 2024
1 parent 240b254 commit 385696e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/client/test_mixin_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ def test_log_json(project_client):
assert artifact_a.id in [a.id for a in artifacts]
assert artifact_b.id in [a.id for a in artifacts]


def test_log_h2o_model(make_classification_df, rubicon_local_filesystem_client_with_project):
@pytest.mark.parametrize("use_mojo", [False, True])
def test_log_h2o_model(make_classification_df, rubicon_local_filesystem_client_with_project, use_mojo):
"""Test logging `h2o` model data."""
_, project = rubicon_local_filesystem_client_with_project
X, y = make_classification_df
Expand All @@ -222,7 +222,7 @@ def test_log_h2o_model(make_classification_df, rubicon_local_filesystem_client_w
y=target_name,
)

artifact = project.log_h2o_model(h2o_model, tags=["h2o"])
artifact = project.log_h2o_model(h2o_model, use_mojo=use_mojo, tags=["h2o"])
read_artifact = project.artifact(name=artifact.name)

assert artifact.id == read_artifact.id
Expand Down

0 comments on commit 385696e

Please sign in to comment.