aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/samples/features/steps/hello.py
diff options
context:
space:
mode:
authorDeepak Chandella <deepak.chandella@orange.com>2019-07-05 22:31:36 +0530
committerCédric Ollivier <cedric.ollivier@orange.com>2019-07-11 11:35:54 +0200
commit5dd0d0ffd46e7665fddde8fd2f4da1a9b58506bb (patch)
tree9be57539cde78b3c82dd2442dfb108827d66ca69 /xtesting/samples/features/steps/hello.py
parent2d35738769a5118fdcf7a7092e4fd0fb7f15511d (diff)
Adding first patch for behave feature
Change-Id: Ic975c301103b49cdec2bd26746b708388f21e892 Signed-off-by: Deepak Chandella <deepak.chandella@orange.com>
Diffstat (limited to 'xtesting/samples/features/steps/hello.py')
-rw-r--r--xtesting/samples/features/steps/hello.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/xtesting/samples/features/steps/hello.py b/xtesting/samples/features/steps/hello.py
new file mode 100644
index 00000000..8d780168
--- /dev/null
+++ b/xtesting/samples/features/steps/hello.py
@@ -0,0 +1,16 @@
+from behave import when, then, step
+
+
+class Hello():
+
+ @step('we have behave installed')
+ def step_impl_installation(context):
+ pass
+
+ @when('we implement a test')
+ def step_impl_test(context):
+ assert True is not False
+
+ @then('behave will test it for us!')
+ def step_impl_verify(context):
+ assert context.failed is False