Skip to content

Commit

Permalink
Switch to the maintained pytest-lazy-fixtures package
Browse files Browse the repository at this point in the history
`pytest-lazy-fixture` has not been maintained since 2022, and it does
not work properly with pytest-8 anymore [1].  Switch to the maintained
`pytest-lazy-fixtures` replacement.

[1] TvoroG/pytest-lazy-fixture#65
  • Loading branch information
mgorny committed Jul 8, 2024
1 parent 36db865 commit ce72019
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ psycopg2-binary = "^2.9.3"
pytest = "^6.2.5"
pytest-django = "^4.5.2"
pytest-pythonpath = "^0.7.3"
pytest-lazy-fixture = "^0.6.3"
pytest-lazy-fixtures = "^1.0.7"
pytest-cov = "^3.0.0"
pytz = "^2024.1"
black = "^24.4.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_field.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from django.core.exceptions import ValidationError
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from timezone_field import TimeZoneField

Expand Down
2 changes: 1 addition & 1 deletion tests/test_form_field.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from django import forms
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from timezone_field import TimeZoneFormField

Expand Down
2 changes: 1 addition & 1 deletion tests/test_model_form_field.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

pytestmark = pytest.mark.filterwarnings("ignore:Model 'tests._model.*' was already registered.")

Expand Down

0 comments on commit ce72019

Please sign in to comment.