@@ -278,6 +278,7 @@ def test_equality_comparison(self):
278278 self .assertNotEqual (self .titanic , "Wrong_object" )
279279
280280
281+ @pytest .mark .uses_test_server ()
281282def test_tagging ():
282283 dataset = openml .datasets .get_dataset (125 , download_data = False )
283284
@@ -294,7 +295,7 @@ def test_tagging():
294295 datasets = openml .datasets .list_datasets (tag = tag )
295296 assert datasets .empty
296297
297- @pytest .mark .xfail ( reason = "failures_issue_1544" )
298+ @pytest .mark .uses_test_server ( )
298299def test_get_feature_with_ontology_data_id_11 ():
299300 # test on car dataset, which has built-in ontology references
300301 dataset = openml .datasets .get_dataset (11 )
@@ -303,13 +304,15 @@ def test_get_feature_with_ontology_data_id_11():
303304 assert len (dataset .features [2 ].ontologies ) >= 1
304305 assert len (dataset .features [3 ].ontologies ) >= 1
305306
307+ @pytest .mark .uses_test_server ()
306308def test_add_remove_ontology_to_dataset ():
307309 did = 1
308310 feature_index = 1
309311 ontology = "https://www.openml.org/unittest/" + str (time ())
310312 openml .datasets .functions .data_feature_add_ontology (did , feature_index , ontology )
311313 openml .datasets .functions .data_feature_remove_ontology (did , feature_index , ontology )
312314
315+ @pytest .mark .uses_test_server ()
313316def test_add_same_ontology_multiple_features ():
314317 did = 1
315318 ontology = "https://www.openml.org/unittest/" + str (time ())
@@ -318,6 +321,7 @@ def test_add_same_ontology_multiple_features():
318321 openml .datasets .functions .data_feature_add_ontology (did , i , ontology )
319322
320323
324+ @pytest .mark .uses_test_server ()
321325def test_add_illegal_long_ontology ():
322326 did = 1
323327 ontology = "http://www.google.com/" + ("a" * 257 )
@@ -329,6 +333,7 @@ def test_add_illegal_long_ontology():
329333
330334
331335
336+ @pytest .mark .uses_test_server ()
332337def test_add_illegal_url_ontology ():
333338 did = 1
334339 ontology = "not_a_url" + str (time ())
@@ -400,6 +405,7 @@ def test_get_sparse_categorical_data_id_395(self):
400405 assert len (feature .nominal_values ) == 25
401406
402407
408+ @pytest .mark .uses_test_server ()
403409def test__read_features (mocker , workdir , static_cache_dir ):
404410 """Test we read the features from the xml if no cache pickle is available.
405411 This test also does some simple checks to verify that the features are read correctly
@@ -431,6 +437,7 @@ def test__read_features(mocker, workdir, static_cache_dir):
431437 assert pickle_mock .dump .call_count == 1
432438
433439
440+ @pytest .mark .uses_test_server ()
434441def test__read_qualities (static_cache_dir , workdir , mocker ):
435442 """Test we read the qualities from the xml if no cache pickle is available.
436443 This test also does some minor checks to ensure that the qualities are read correctly.
0 commit comments