In the examples of a scenario outline using the pytest-bdd framework, I specify that a result of a test is an exception.
Here is a part of my code:
Scenario Outile:
Given ...
When ...
Then ...
Examples
|input | output |
|non_existing_file_name | an exception: file does not exsist.|
I want to be able to specify exceptions as a parameter.