Skip to content
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

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Jul 8, 2024

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.

Copy link
Contributor

@cclauss cclauss left a 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.

@@ -1,6 +1,6 @@
import pytest
from django.core.exceptions import ValidationError
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf
Copy link
Contributor

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...

Suggested change
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.

@@ -1,6 +1,6 @@
import pytest
from django import forms
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@@ -1,5 +1,5 @@
import pytest
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

mgorny added 2 commits July 8, 2024 15:15
`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
@mgorny
Copy link
Contributor Author

mgorny commented Jul 8, 2024

Sure, updated now.

@mfogel
Copy link
Owner

mfogel commented Oct 15, 2024

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.

@mfogel mfogel merged commit 189e0a6 into mfogel:main Oct 15, 2024
@mgorny mgorny deleted the pytest-lf branch October 15, 2024 07:00
@mgorny
Copy link
Contributor Author

mgorny commented Oct 15, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants