Skip to content

Commit

Permalink
Remove dict() from a ChainMap in before_feature
Browse files Browse the repository at this point in the history
  • Loading branch information
josemiguel-rodrigueznaranjo committed Sep 10, 2024
1 parent 71f8905 commit 8c9c7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolium/behave/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def before_feature(context, feature):

# Dictionary to store information between features
context.feature_storage = dict()
context.storage = collections.ChainMap(dict(), context.feature_storage, context.run_storage)
context.storage = collections.ChainMap(context.feature_storage, context.run_storage)

# Behave dynamic environment
context.dyn_env.get_steps_from_feature_description(feature.description)
Expand Down

0 comments on commit 8c9c7b1

Please sign in to comment.