Module Expr Str ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Pass decorator_list Call NameLoad Str Str Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad ListLoad Str Str Assert CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad ListLoad Str Str Assert Call NameLoad NameLoad Str Assert Call NameLoad NameLoad Str Assert Call NameLoad NameLoad Str Assert Call NameLoad NameLoad Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str Str attr Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str Str attr Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str Str attr Assert CompareEq SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str Str attr Assert CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str Str attr Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq SubscriptLoad NameLoad Index Str Num decorator_list
N/A N/A Test tags. pytest_bdd scenario test_tags N/A N/A request N/A N/A N/A Test tags for the scenario and the feature. test N/A N/A N/A N/A N/A N/A N/A scenario tags.feature Tags N/A N/A N/A N/A test __scenario__ tags N/A set N/A scenario_tag_1 scenario_tag_2 N/A N/A N/A N/A N/A test __scenario__ feature tags N/A set N/A feature_tag_1 feature_tag_2 N/A N/A getattr test scenario_tag_1 N/A N/A getattr test scenario_tag_2 N/A N/A getattr test feature_tag_1 N/A N/A getattr test feature_tag_2 N/A N/A test request N/A test_tags_selector N/A N/A testdir N/A N/A N/A Test tests selection by tags. N/A N/A N/A testdir makefile .feature test 
    @feature_tag_1 @feature_tag_2
    Feature: Tags

    @scenario_tag_01 @scenario_tag_02
    Scenario: Tags
        Given I have a bar

    @scenario_tag_10 @scenario_tag_20
    Scenario: Tags 2
        Given I have a bar

     N/A N/A N/A testdir makepyfile 
        import pytest
        from pytest_bdd import given, scenarios

        @given('I have a bar')
        def i_have_bar():
            return 'bar'

        scenarios('test.feature')
     N/A result N/A N/A N/A N/A testdir runpytest -k scenario_tag_10 and not scenario_tag_01 -vv parseoutcomes N/A N/A N/A result N/A passed 1 N/A N/A N/A result N/A deselected 1 N/A result N/A N/A N/A N/A testdir runpytest -k scenario_tag_01 and not scenario_tag_10 -vv parseoutcomes N/A N/A N/A result N/A passed 1 N/A N/A N/A result N/A deselected 1 N/A result N/A N/A N/A N/A testdir runpytest -k feature_tag_1 -vv parseoutcomes N/A N/A N/A result N/A passed 2 N/A result N/A N/A N/A N/A testdir runpytest -k feature_tag_10 -vv parseoutcomes N/A N/A N/A result N/A deselected 2 N/A test_tags_after_background_issue_160 N/A N/A testdir N/A N/A N/A Make sure using a tag after background works. N/A N/A N/A testdir makefile .feature test 
    Feature: Tags after background

        Background:
            Given I have a bar

        @tag
        Scenario: Tags
            Given I have a baz

        Scenario: Tags 2
            Given I have a baz
     N/A N/A N/A testdir makepyfile 
        import pytest
        from pytest_bdd import given, scenarios

        @given('I have a bar')
        def i_have_bar():
            return 'bar'

        @given('I have a baz')
        def i_have_baz():
            return 'baz'

        scenarios('test.feature')
     N/A result N/A N/A N/A N/A testdir runpytest -m tag -vv parseoutcomes N/A N/A N/A result N/A passed 1 N/A N/A N/A result N/A deselected 1 N/A