Skip to content

Commit a6a13d6

Browse files
reorg
1 parent 14ea533 commit a6a13d6

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,11 @@ def _make_request_patch(
5555

5656
monkeypatch_session.setattr(client, "_make_request", _make_request_patch)
5757
return client
58+
59+
@pytest.fixture()
60+
def dataset(CLIENT):
61+
ds = CLIENT.create_dataset(TEST_DATASET_NAME)
62+
ds.append(TEST_DATASET_ITEMS)
63+
yield ds
64+
65+
CLIENT.delete_dataset(ds.id)

tests/helpers.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pathlib import Path
2-
import pytest
32
from nucleus import DatasetItem, BoxPrediction
43

54
TEST_MODEL_NAME = '[PyTest] Test Model'
@@ -27,14 +26,6 @@
2726
BoxPrediction('car', 0, 0, 100, 100, '4')
2827
]
2928

30-
@pytest.fixture()
31-
def dataset(CLIENT):
32-
ds = CLIENT.create_dataset(TEST_DATASET_NAME)
33-
ds.append(TEST_DATASET_ITEMS)
34-
yield ds
35-
36-
CLIENT.delete_dataset(ds.id)
37-
3829
def reference_id_from_url(url):
3930
return Path(url).name
4031

tests/test_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
DATASET_ID_KEY,
1818
)
1919
from helpers import (
20-
dataset,
2120
TEST_MODEL_NAME,
2221
TEST_MODEL_REFERENCE,
2322
TEST_MODEL_RUN,

0 commit comments

Comments
 (0)