Skip to content

Commit 50bc743

Browse files
author
Kevin Kim
committed
Clean custom metadata for mdo fixture
1 parent 065a6fa commit 50bc743

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/test_data_row_metadata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
@pytest.fixture
3030
def mdo(client):
3131
mdo = client.get_data_row_metadata_ontology()
32+
for schema in mdo.custom_fields:
33+
mdo.delete_schema(schema.name)
3234
mdo._raw_ontology = mdo._get_ontology()
3335
mdo._raw_ontology.append(FAKE_NUMBER_FIELD)
3436
mdo._build_ontology()
@@ -76,7 +78,7 @@ def test_export_empty_metadata(configured_project_with_label):
7678
def test_get_datarow_metadata_ontology(mdo):
7779
assert len(mdo.fields)
7880
assert len(mdo.reserved_fields)
79-
assert "number" in mdo.custom_by_name
81+
assert len(mdo.custom_fields) == 1
8082

8183
split = mdo.reserved_by_name["split"]["train"]
8284

0 commit comments

Comments
 (0)