-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74bb2cb
commit 9bd35a4
Showing
15 changed files
with
151 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
from sismic.bdd.steps import action_alias, assertion_alias | ||
from sismic.bdd import map_action, map_assertion | ||
|
||
|
||
action_alias('I open the door', 'I send event door_opened') | ||
action_alias('I close the door', 'I send event door_closed') | ||
action_alias('I place an item in the oven', 'I send event item_placed') | ||
action_alias('I press increase timer button {time} times', 'I repeat "I send event timer_inc" {time} times') | ||
action_alias('I press increase power button', 'I send event power_inc') | ||
action_alias('I press start button', 'I send event cooking_start') | ||
action_alias('{tick} seconds elapsed', 'I repeat "I send event timer_tick" {tick} times') | ||
map_action('I open the door', 'I send event door_opened') | ||
map_action('I close the door', 'I send event door_closed') | ||
map_action('I place an item in the oven', 'I send event item_placed') | ||
map_action('I press increase timer button {time} times', 'I repeat "I send event timer_inc" {time} times') | ||
map_action('I press increase power button', 'I send event power_inc') | ||
map_action('I press start button', 'I send event cooking_start') | ||
map_action('{tick} seconds elapsed', 'I repeat "I send event timer_tick" {tick} times') | ||
|
||
assertion_alias('Heating turns on', 'Event heating_on is fired') | ||
assertion_alias('Heating does not turn on', 'Event heating_on is not fired') | ||
assertion_alias('heating turns off', 'Event heating_off is fired') | ||
assertion_alias('lamp turns on', 'Event lamp_switch_on is fired') | ||
assertion_alias('lamp turns off', 'Event lamp_switch_off is fired') | ||
map_assertion('Heating turns on', 'Event heating_on is fired') | ||
map_assertion('Heating does not turn on', 'Event heating_on is not fired') | ||
map_assertion('heating turns off', 'Event heating_off is fired') | ||
map_assertion('lamp turns on', 'Event lamp_switch_on is fired') | ||
map_assertion('lamp turns off', 'Event lamp_switch_off is fired') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.