Skip to content

Commit 72af80e

Browse files
committed
added sentinel for failing test and redirected testcase to live
1 parent bd5fdb1 commit 72af80e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_flows/test_flow.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,13 @@ def test_publish_flow(self):
155155

156156
def test_semi_legal_flow(self):
157157
# TODO: Test if parameters are set correctly!
158+
sentinel = get_sentinel()
158159
semi_legal = sklearn.ensemble.BaggingClassifier(
159160
base_estimator=sklearn.ensemble.BaggingClassifier(
160161
base_estimator=sklearn.tree.DecisionTreeClassifier()))
161162
flow = openml.flows.sklearn_to_flow(semi_legal)
163+
flow.name = 'TEST%s%s' % (sentinel, flow.name)
164+
162165
flow.publish()
163166

164167
def test_illegal_flow(self):

tests/test_runs/test_run_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def test__run_task_get_arffcontent(self):
141141
'Iris-virginica'])
142142

143143
def test_get_run(self):
144+
# this run is not available on test
145+
openml.config.server = self.production_server
144146
run = openml.runs.get_run(473350)
145147
self.assertEqual(run.dataset_id, 1167)
146148
self.assertEqual(run.evaluations['f_measure'], 0.624668)

0 commit comments

Comments
 (0)