pytest-dev / pytest-bdd

BDD library for the pytest runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.32k stars 221 forks source link

How to refuse vetical examples? #543

Closed BlackFairyL closed 2 years ago

BlackFairyL commented 2 years ago

Hi everyone! Previously, we used vertical examples, but they are no longer supported in the new version. What to do with such test cases?

Given I am client in channel <channel_name:str>
Example:
| channel_name |
| First |
| Second |
youtux commented 2 years ago

This example should almost work, just remove the :str part and make sure you are using Scenario Outline: or Scenario Template::

Scenario Template: My scenario
    Given I am client in channel <channel_name>
BlackFairyL commented 2 years ago

Thank you!