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

fix is pytest fixture #2

Merged
merged 2 commits into from
Oct 23, 2023
Merged

fix is pytest fixture #2

merged 2 commits into from
Oct 23, 2023

Commits on Oct 20, 2023

  1. test direct import

    anis-campos committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    630172b View commit details
    Browse the repository at this point in the history
  2. Fixing _is_pytest_fixture

    currently, both fixture in this example are flagged has not fixtures
    ```python
    from pytest import fixture
    
    @fixture
    def my_fixture(): pass
    
    @fixture(name="foo")
    def my_fixture_2(): pass
    ```
    This is due to the different semantics in astroid when using `import pytest` or `from pytest import ...`
    anis-campos committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    d5cd873 View commit details
    Browse the repository at this point in the history