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 75e2319 commit b8e7139Copy full SHA for b8e7139
conftest.py
@@ -1,4 +1,6 @@
1
import os
2
+import random
3
+import sys
4
from typing import TYPE_CHECKING
5
6
import pytest
@@ -34,7 +36,12 @@ def dataset(CLIENT: "NucleusClient"):
34
36
35
37
@pytest.fixture()
38
def model(CLIENT):
- model = CLIENT.create_model(TEST_DATASET_NAME, "fake_reference_id")
39
+ # Randomly generate an integer between 0 and maximum integer so reference ids
40
+ # do not collide during parallel test rusn.
41
+ random_postfix = str(random.randint(0, sys.maxsize))
42
+ model = CLIENT.create_model(
43
+ TEST_DATASET_NAME, "fake_reference_id_" + random_postfix
44
+ )
45
yield model
46
CLIENT.delete_model(model.id)
47
0 commit comments