Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions tests/test_runs/test_run_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,16 @@ def _remove_random_state(flow):
assert run_ == run
assert isinstance(run.dataset_id, int)

# This is only a smoke check right now
# TODO add a few asserts here
run._to_xml()
# Check XML output.
xml = run._to_xml()
assert xml is not None

if run.trace is not None:
# This is only a smoke check right now
# TODO add a few asserts here
run.trace.trace_to_arff()
# Check trace ARFF output.
trace_arff = run.trace.trace_to_arff()
assert isinstance(trace_arff, dict)
assert "data" in trace_arff
assert len(trace_arff["data"]) > 0

# check arff output
assert len(run.data_content) == num_instances
Expand Down Expand Up @@ -2099,4 +2102,4 @@ def test_joblib_backends(parallel_mock, n_jobs, backend, call_count):
# *_time_millis_* not recorded when n_jobs = -1
assert len(res[2]["predictive_accuracy"][0]) == 10
assert len(res[3]["predictive_accuracy"][0]) == 10
assert parallel_mock.call_count == call_count
assert parallel_mock.call_count == call_count