Skip to content Skip to sidebar Skip to footer

Why I'm Getting F811 Error In This Code?

I have my tests divided in multiple files with share a helpers.py with common functions to all tests. For example: helpers.py @pytest.fixture def settings(): test_component_a.py

Solution 1:

The problem is the way pytest works. When I run pytest, it will load the fixtures of every file in the directory, so that's why it complains about a redefinition


Post a Comment for "Why I'm Getting F811 Error In This Code?"