-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
Expected behavior
Should be able to define hooks with execution context as parameter
Actual behavior
Getting error
Error Message: before_scenario_hook() takes exactly 2 arguments (1 given)
Stacktrace:
Traceback (most recent call last):
File "...\Python27\site-packages\getgauge\executor.py", line 31, in execute_method
func(*params)
TypeError: before_scenario_hook() takes exactly 2 arguments (1 given)
Steps to replicate
- Create a
gauge-python
project - Change the definition of the hook to
@before_scenario
def before_scenario_hook(self,context):
print context
assert "".join(vowels) == "aeiou"
- Execute the specs
The above error can be observed
Version
Gauge version: 1.0.4.nightly-2019-01-08
Commit Hash: 408b09f
Plugins
-------
html-report (4.0.7.nightly-2018-12-10)
python (0.3.5.nightly-2018-12-31)
Blocks #119
Metadata
Metadata
Assignees
Labels
No labels