Skip to content

Commit d6c611b

Browse files
authored
fix: update also tests for --files
1 parent 254651d commit d6c611b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_predictions/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ def my_fixture2(request):
5151
)
5252

5353

54-
# Fixture for the 'input' parameter@pytest.fixture(
54+
# Fixture for the 'files' parameter@pytest.fixture(
5555
@pytest.fixture(
5656
scope="module",
5757
params=fnmatch.filter(DATA_FILES, "*.jpg")
5858
+ fnmatch.filter(DATA_FILES, "*.png"),
5959
)
60-
def input(request):
60+
def files(request):
6161
file = os.path.join(
6262
os.path.join(config.TEST_DATA_PATH, "det/test"), request.param
6363
)
6464

6565
content_type = "application/octet-stream"
66-
return UploadedFile("input", file, content_type, request.param)
66+
return UploadedFile("files", file, content_type, request.param)
6767

6868

6969
# Fixture for the 'model' parameter
@@ -133,7 +133,7 @@ def accept_param(request):
133133

134134
@pytest.fixture(scope="module")
135135
def pred_kwds(
136-
input,
136+
files,
137137
model_param,
138138
task_type_param,
139139
conf_param,
@@ -148,7 +148,7 @@ def pred_kwds(
148148
):
149149
"""Fixture to return arbitrary keyword arguments for predictions."""
150150
pred_kwds = {
151-
"input": input,
151+
"files": files,
152152
"model": model_param,
153153
"task_type": task_type_param,
154154
"conf": conf_param,

0 commit comments

Comments
 (0)