Reuse steps from conftest.py
masterStep definitions (using @given, @when, @then) defined in a parent conftest.py are automatically available to all test files in that directory and its subdirectories. This allows you to define common domain steps once and use them across multiple feature files without re-defining them in every test module.
# In conftest.py
@given("I have a bar", target_fixture="bar")
def bar():
return "bar"
# In test_common.py
@scenario("common_steps.feature", "All steps are declared in the conftest")
def test_conftest():
pass