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
10 changes: 8 additions & 2 deletions tests/test_runs/test_run_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import unittest
import warnings
from collections import OrderedDict
import xml

from openml_sklearn import SklearnExtension, cat, cont
from packaging.version import Version
Expand Down Expand Up @@ -342,11 +343,16 @@ def _remove_random_state(flow):

# This is only a smoke check right now
# TODO add a few asserts here
run._to_xml()
xml = run._to_xml()
assert isinstance(xml, str)
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()
arff = run.trace.trace_to_arff()
assert "attributes" in arff
assert "data" in arff
assert "relation" in arff
assert arff["relation"] == "Trace"

# check arff output
assert len(run.data_content) == num_instances
Expand Down