-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to the maintained pytest-lazy-fixtures package #138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from pytest_lazy_fixtures import lf as lazy_fixture
for readability.
tests/test_field.py
Outdated
@@ -1,6 +1,6 @@ | |||
import pytest | |||
from django.core.exceptions import ValidationError | |||
from pytest_lazyfixture import lazy_fixture | |||
from pytest_lazy_fixtures import lf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that lf
is a bit cryptic (is it linefeed?) what about...
from pytest_lazy_fixtures import lf | |
from pytest_lazy_fixtures import lf as lazy_fixture |
and then revert all the remaining changes in this file.
tests/test_form_field.py
Outdated
@@ -1,6 +1,6 @@ | |||
import pytest | |||
from django import forms | |||
from pytest_lazyfixture import lazy_fixture | |||
from pytest_lazy_fixtures import lf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from pytest_lazy_fixtures import lf | |
from pytest_lazy_fixtures import lf as lazy_fixture |
and then revert all the remaining changes in this file.
tests/test_model_form_field.py
Outdated
@@ -1,5 +1,5 @@ | |||
import pytest | |||
from pytest_lazyfixture import lazy_fixture | |||
from pytest_lazy_fixtures import lf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from pytest_lazy_fixtures import lf | |
from pytest_lazy_fixtures import lf as lazy_fixture |
and then revert all the remaining changes in this file.
`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
Sure, updated now. |
Thanks very much for the contribution! Not sure why Github isn't running CI for this, but I ran the test locally and all looked good. Merging. |
Thanks! |
pytest-lazy-fixture
has not been maintained since 2022, and it does not work properly with pytest-8 anymore. Switch to the maintainedpytest-lazy-fixtures
replacement.I've split poetry lock update to a separate commit, in case you preferred it done some other way.