From 74056d574671d49eaadd1207c85f04722f58cb12 Mon Sep 17 00:00:00 2001 From: Matt Sokoloff Date: Tue, 24 Jan 2023 17:13:27 -0500 Subject: [PATCH 1/2] setup project before import --- tests/integration/annotation_import/test_label_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/annotation_import/test_label_import.py b/tests/integration/annotation_import/test_label_import.py index 06c3b10c5..996867201 100644 --- a/tests/integration/annotation_import/test_label_import.py +++ b/tests/integration/annotation_import/test_label_import.py @@ -67,10 +67,10 @@ def test_get(client, project, annotation_import_test_helpers): @pytest.mark.slow -def test_wait_till_done(client, project, predictions): +def test_wait_till_done(client, configured_project, predictions): name = str(uuid.uuid4()) label_import = LabelImport.create_from_objects(client=client, - project_id=project.uid, + project_id=configured_project.uid, name=name, labels=predictions) From 313ab0a561466721105d2b47079bf193e23196e9 Mon Sep 17 00:00:00 2001 From: Matt Sokoloff Date: Tue, 24 Jan 2023 17:22:38 -0500 Subject: [PATCH 2/2] format --- tests/integration/annotation_import/test_label_import.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/integration/annotation_import/test_label_import.py b/tests/integration/annotation_import/test_label_import.py index 996867201..44a308776 100644 --- a/tests/integration/annotation_import/test_label_import.py +++ b/tests/integration/annotation_import/test_label_import.py @@ -69,10 +69,11 @@ def test_get(client, project, annotation_import_test_helpers): @pytest.mark.slow def test_wait_till_done(client, configured_project, predictions): name = str(uuid.uuid4()) - label_import = LabelImport.create_from_objects(client=client, - project_id=configured_project.uid, - name=name, - labels=predictions) + label_import = LabelImport.create_from_objects( + client=client, + project_id=configured_project.uid, + name=name, + labels=predictions) assert len(label_import.inputs) == len(predictions) label_import.wait_until_done()