Skip to content

Commit b326619

Browse files
committed
use pytest-lazy-fixtures
1 parent 2880b3a commit b326619

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

requirements-dev.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ black
33
flake8
44
isort
55
pytest-mock
6-
pytest-lazy-fixture
6+
pytest-lazy-fixtures
77
pytest-cov
88
pip-tools
9-
types-pytest-lazy-fixture
109
types-setuptools
1110
mypy
1211
absolufy-imports

requirements-dev.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ pytest==8.3.5
8686
# via
8787
# -r requirements-dev.in
8888
# pytest-cov
89-
# pytest-lazy-fixture
89+
# pytest-lazy-fixtures
9090
# pytest-mock
9191
pytest-cov==5.0.0
9292
# via -r requirements-dev.in
93-
pytest-lazy-fixture==0.6.3
93+
pytest-lazy-fixtures==1.3.4
9494
# via -r requirements-dev.in
9595
pytest-mock==3.14.1
9696
# via -r requirements-dev.in
@@ -107,8 +107,6 @@ tomli==2.2.1
107107
# mypy
108108
# pip-tools
109109
# pytest
110-
types-pytest-lazy-fixture==0.6.3.20240707
111-
# via -r requirements-dev.in
112110
types-setuptools==75.8.0.20250110
113111
# via -r requirements-dev.in
114112
typing-extensions==4.13.2

tests/unit/segments/test_segments_evaluator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import typing
22

33
import pytest
4-
from pytest_lazyfixture import lazy_fixture
4+
from pytest_lazy_fixtures import lf
55
from pytest_mock import MockerFixture
66

77
import flag_engine.segments.evaluator
@@ -368,8 +368,8 @@ def test_context_in_segment_percentage_split__trait_value__calls_expected(
368368
@pytest.mark.parametrize(
369369
"operator, property_, expected_result",
370370
(
371-
(constants.IS_SET, lazy_fixture("segment_condition_property"), True),
372-
(constants.IS_NOT_SET, lazy_fixture("segment_condition_property"), False),
371+
(constants.IS_SET, lf("segment_condition_property"), True),
372+
(constants.IS_NOT_SET, lf("segment_condition_property"), False),
373373
(constants.IS_SET, "random_property", False),
374374
(constants.IS_NOT_SET, "random_property", True),
375375
),

0 commit comments

Comments
 (0)