We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065a6fa commit 50bc743Copy full SHA for 50bc743
tests/integration/test_data_row_metadata.py
@@ -29,6 +29,8 @@
29
@pytest.fixture
30
def mdo(client):
31
mdo = client.get_data_row_metadata_ontology()
32
+ for schema in mdo.custom_fields:
33
+ mdo.delete_schema(schema.name)
34
mdo._raw_ontology = mdo._get_ontology()
35
mdo._raw_ontology.append(FAKE_NUMBER_FIELD)
36
mdo._build_ontology()
@@ -76,7 +78,7 @@ def test_export_empty_metadata(configured_project_with_label):
76
78
def test_get_datarow_metadata_ontology(mdo):
77
79
assert len(mdo.fields)
80
assert len(mdo.reserved_fields)
- assert "number" in mdo.custom_by_name
81
+ assert len(mdo.custom_fields) == 1
82
83
split = mdo.reserved_by_name["split"]["train"]
84
0 commit comments