Skip to content
Snippets Groups Projects
Commit 518a7cbd authored by Eva Bardou's avatar Eva Bardou :frog: Committed by Yoann Schneider
Browse files

Replace `pytest-lazy-fixture` with `pytest-lazy-fixtures`

parent 19536547
No related branches found
No related tags found
1 merge request!127Replace `pytest-lazy-fixture` with `pytest-lazy-fixtures`
Pipeline #160952 passed
...@@ -4,6 +4,7 @@ import os ...@@ -4,6 +4,7 @@ import os
import pytest import pytest
from huggingface_hub.utils import RepositoryNotFoundError, RevisionNotFoundError from huggingface_hub.utils import RepositoryNotFoundError, RevisionNotFoundError
from pytest_lazy_fixtures import lf as lazy_fixture
from doc_ufcn import models from doc_ufcn import models
...@@ -16,7 +17,7 @@ from doc_ufcn import models ...@@ -16,7 +17,7 @@ from doc_ufcn import models
"generic-page", "generic-page",
"main", "main",
"~/.cache/doc-ufcn/models/generic-page/models--Teklia--doc-ufcn-generic-page/snapshots/ef5519d77baa190bfe294ad3994146dbe7e72095", "~/.cache/doc-ufcn/models/generic-page/models--Teklia--doc-ufcn-generic-page/snapshots/ef5519d77baa190bfe294ad3994146dbe7e72095",
pytest.lazy_fixture("test_parameters"), lazy_fixture("test_parameters"),
True, True,
), ),
# Correct fullname and version # Correct fullname and version
...@@ -24,7 +25,7 @@ from doc_ufcn import models ...@@ -24,7 +25,7 @@ from doc_ufcn import models
"doc-ufcn-generic-page", "doc-ufcn-generic-page",
"main", "main",
"~/.cache/doc-ufcn/models/generic-page/models--Teklia--doc-ufcn-generic-page/snapshots/ef5519d77baa190bfe294ad3994146dbe7e72095", "~/.cache/doc-ufcn/models/generic-page/models--Teklia--doc-ufcn-generic-page/snapshots/ef5519d77baa190bfe294ad3994146dbe7e72095",
pytest.lazy_fixture("test_parameters"), lazy_fixture("test_parameters"),
True, True,
), ),
# Correct name and incorrect version # Correct name and incorrect version
...@@ -34,7 +35,7 @@ from doc_ufcn import models ...@@ -34,7 +35,7 @@ from doc_ufcn import models
"generic-page", "generic-page",
None, None,
"~/.cache/doc-ufcn/models/generic-page/models--Teklia--doc-ufcn-generic-page/snapshots/ef5519d77baa190bfe294ad3994146dbe7e72095", "~/.cache/doc-ufcn/models/generic-page/models--Teklia--doc-ufcn-generic-page/snapshots/ef5519d77baa190bfe294ad3994146dbe7e72095",
pytest.lazy_fixture("test_parameters"), lazy_fixture("test_parameters"),
True, True,
), ),
# Incorrect name and incorrect version # Incorrect name and incorrect version
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import numpy as np import numpy as np
import pytest import pytest
from pytest_lazy_fixtures import lf as lazy_fixture
from doc_ufcn import prediction from doc_ufcn import prediction
...@@ -313,8 +314,8 @@ def test_resize_predicted_polygons( ...@@ -313,8 +314,8 @@ def test_resize_predicted_polygons(
( (
{1: []}, {1: []},
None, None,
pytest.lazy_fixture("test_image"), lazy_fixture("test_image"),
pytest.lazy_fixture("test_image"), lazy_fixture("test_image"),
), ),
( (
{ {
...@@ -357,8 +358,8 @@ def test_resize_predicted_polygons( ...@@ -357,8 +358,8 @@ def test_resize_predicted_polygons(
], ],
}, },
None, None,
pytest.lazy_fixture("test_image"), lazy_fixture("test_image"),
pytest.lazy_fixture("test_masked_image"), lazy_fixture("test_masked_image"),
), ),
], ],
) )
......
...@@ -7,7 +7,7 @@ commands = ...@@ -7,7 +7,7 @@ commands =
deps = deps =
pytest pytest
pytest-lazy-fixture pytest-lazy-fixtures
-rrequirements.txt -rrequirements.txt
-rtraining-requirements.txt -rtraining-requirements.txt
-rtest-requirements.txt -rtest-requirements.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment