Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ filterwarnings=[
"ignore:the matrix subclass:PendingDeprecationWarning"
]
markers = [
"server: anything that connects to a server",
"upload: anything that uploads to a server",
"production: any interaction with the production server",
"cache: anything that interacts with the (test) cache",
"test_server: tests that require the OpenML test server",
]

# https://github.com/charliermarsh/ruff
Expand Down
16 changes: 8 additions & 8 deletions tests/test_datasets/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_equality_comparison(self):
self.assertNotEqual(self.titanic, "Wrong_object")


@pytest.mark.uses_test_server()
@pytest.mark.test_server()
def test_tagging():
dataset = openml.datasets.get_dataset(125, download_data=False)

Expand All @@ -298,7 +298,7 @@ def test_tagging():
datasets = openml.datasets.list_datasets(tag=tag)
assert datasets.empty

@pytest.mark.uses_test_server()
@pytest.mark.test_server()
def test_get_feature_with_ontology_data_id_11():
# test on car dataset, which has built-in ontology references
dataset = openml.datasets.get_dataset(11)
Expand All @@ -307,15 +307,15 @@ def test_get_feature_with_ontology_data_id_11():
assert len(dataset.features[2].ontologies) >= 1
assert len(dataset.features[3].ontologies) >= 1

@pytest.mark.uses_test_server()
@pytest.mark.test_server()
def test_add_remove_ontology_to_dataset():
did = 1
feature_index = 1
ontology = "https://www.openml.org/unittest/" + str(time())
openml.datasets.functions.data_feature_add_ontology(did, feature_index, ontology)
openml.datasets.functions.data_feature_remove_ontology(did, feature_index, ontology)

@pytest.mark.uses_test_server()
@pytest.mark.test_server()
def test_add_same_ontology_multiple_features():
did = 1
ontology = "https://www.openml.org/unittest/" + str(time())
Expand All @@ -324,7 +324,7 @@ def test_add_same_ontology_multiple_features():
openml.datasets.functions.data_feature_add_ontology(did, i, ontology)


@pytest.mark.uses_test_server()
@pytest.mark.test_server()
def test_add_illegal_long_ontology():
did = 1
ontology = "http://www.google.com/" + ("a" * 257)
Expand All @@ -336,7 +336,7 @@ def test_add_illegal_long_ontology():



@pytest.mark.uses_test_server()
@pytest.mark.test_server()
def test_add_illegal_url_ontology():
did = 1
ontology = "not_a_url" + str(time())
Expand Down Expand Up @@ -408,7 +408,7 @@ def test_get_sparse_categorical_data_id_395(self):
assert len(feature.nominal_values) == 25


@pytest.mark.uses_test_server()
@pytest.mark.test_server()
def test__read_features(mocker, workdir, static_cache_dir):
"""Test we read the features from the xml if no cache pickle is available.
This test also does some simple checks to verify that the features are read correctly
Expand Down Expand Up @@ -440,7 +440,7 @@ def test__read_features(mocker, workdir, static_cache_dir):
assert pickle_mock.dump.call_count == 1


@pytest.mark.uses_test_server()
@pytest.mark.test_server()
def test__read_qualities(static_cache_dir, workdir, mocker):
"""Test we read the qualities from the xml if no cache pickle is available.
This test also does some minor checks to ensure that the qualities are read correctly.
Expand Down
Loading