'PyTest-BDD Single Scenario Outline Multiple Examples

I'd like to define a single PyTest-BDD based Scenario Outline that has multiple Examples. Sample snippet:

        Scenario Outline: front to back validation
          When tester executes access view sql query <sqlCommandProp> into av dataframe
          And tester adds investment quant id to av dataframe
          And tester reads raw file <fileNameProp> from datalake into raw dataframe

        @raw2AccessValidation
        Examples:
       |sqlCommandProp|fileNameProp|
       |sqlCommand    | fileName   |

        @raw2AccessValidation2
       Examples:
       |sqlCommandProp|fileNameProp|
       |eric          | shane      |

I want to have separate tags for each Example, as I might not want to run them all.

I have tried the above, and see that multiple Examples are okay. However, I can't seem to have the different tags recognized, so I can't specify which of the 2 (or more) I want to run.

I ask because this is do-able with java/cucumber engine. Wondering if I am missing something, doing something wrong, with pytest-bdd ??

thnx



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source