We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407292f commit e07ba03Copy full SHA for e07ba03
test/tck/environment.py
@@ -27,11 +27,15 @@ def before_all(context):
27
28
def before_feature(context, feature):
29
# Workaround. Behave has a different way of tagging than cucumber
30
- if "reset_database" in feature.tags:
31
- for scenario in feature.scenarios:
32
- scenario.tags.append("reset_database")
33
-
+ for scenario in feature.scenarios:
+ scenario.tags += feature.tags
34
35
def before_scenario(context, scenario):
36
if "reset_database" in scenario.tags:
37
tck_util.send_string("MATCH (n) DETACH DELETE n")
+
38
+def after_scenario(context, scenario):
39
+ if scenario.status != "passed":
40
+ raise Exception("%s did not pass" %scenario)
41
0 commit comments