Skip to content

Commit

Permalink
Switch to the maintained pytest-lazy-fixtures package (#138)
Browse files Browse the repository at this point in the history
* Switch to the maintained pytest-lazy-fixtures package

`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

* Update dependency pins
  • Loading branch information
mgorny authored Oct 15, 2024
1 parent 6222c14 commit 189e0a6
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 85 deletions.
120 changes: 40 additions & 80 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ coverage = {extras = ["toml"], version = "^6.2"}
djangorestframework = "^3.15.2"
flake8 = "^5.0.4"
psycopg2-binary = "^2.9.3"
pytest = "^6.2.5"
pytest = "^8.0.0"
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 189e0a6

Please sign in to comment.