Skip to content

Commit

Permalink
Properly apply tags to scenario outlines
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed Oct 2, 2015
1 parent a118732 commit 746de97
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions aloe/testclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ def make_scenario(cls, scenario, index):
result.scenario = scenario
result.scenario_index = index

for tag in scenario.tags:
result = attr(tag)(result)

return result

@classmethod
Expand Down Expand Up @@ -331,14 +334,6 @@ def make_steps(cls, step_container, steps,
name=func_name,
)

try:
tags = step_container.tags
except AttributeError:
tags = ()

for tag in tags:
run_steps = attr(tag)(run_steps)

if not is_background:
run_steps = CALLBACK_REGISTRY.wrap('example', run_steps,
step_container, outline, steps)
Expand Down

0 comments on commit 746de97

Please sign in to comment.