Skip to content

Commit b88c4ef

Browse files
committed
Add in tear down helper
1 parent f95e611 commit b88c4ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs/labelbox/tests/data/annotation_import/test_relationships.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def configured_project(
145145
rand_gen,
146146
data_row_json_by_media_type,
147147
normalized_ontology_by_media_type_relationship,
148+
teardown_helpers,
148149
):
149150
"""Configure project for test. Request.param will contain the media type if not present will use Image MediaType. The project will have 10 data rows."""
150151

@@ -186,6 +187,10 @@ def configured_project(
186187
project.global_keys = global_keys
187188

188189
yield project
190+
teardown_helpers.teardown_project_labels_ontology_feature_schemas(project)
191+
192+
if dataset:
193+
dataset.delete()
189194

190195

191196
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)