Giter Club home page Giter Club logo

pytest-fixture-classes's Introduction

Hi there, my name is Stanislav Zmiev ๐Ÿ‘‹

telegram mail Linkedln

  • I am a Platform Engineer with an extensive experience in devtools and backend Development
  • I have done a fair share of frontend, mobile, DevOps, and lower level stuff in my spare time
  • I have built numerous open source projects over the years, most of which can be found on my GitHub page
  • My passion is creating and combining development tools to provide programmers with the best possible support while coding. To increase value without needing to increase the team size
  • In my spare time, I contribute to open source and participate in developer meetups and conferences. Over the years I have contributed code to:

... any many smaller projects!

pytest-fixture-classes's People

Contributors

ovsyanka83 avatar zmievsa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pytest-fixture-classes's Issues

Impossible to use fixture with nested fixture when it is in other file

example:

file with fixtures, let's say fix.py

from pytest_fixture_classes import fixture_class


@fixture_class(name="first_fixture")
class FirstFixture:
    def __call__(self) -> None:
        ...


@fixture_class(name="second_fixture")
class SecondFixture:
    first_fixture: FirstFixture

    def __call__(self) -> None:
        self.first_fixture()

file with tests, let's say tests.py

from .fix import SecondFixture


def test_kek(second_fixture: SecondFixture) -> None:
    second_fixture()

if you run pytest you'll get this error

E       fixture 'first_fixture' not found
>       available fixtures: ..., second_fixture, ...
>       use 'pytest --fixtures [testpath]' for help on them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.