Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ before_install:
install:
- poetry install
script:
- pre-commit run --all-files
- poetry run pre-commit run --all-files
- poetry run pytest
- poetry run behave --tags=~wip
env:
global:
- secure: G4sM7Qryd6y4R17WE+C2BWUp3btodCdQ6ceAT9XYmVlAHwTe8FMf+7mVmbwq4yN0me078mJYDOoAZLNoW4yFIxKH55V0m22Omgl8JQorJdiG1A60D9161nhVYeZHnuC4JMm2A/kwbeQe07D39D+LqDqtv4rK4BQnlrs61nzjx7BFRMPSEm4YECkeMRPq5fM/u9Mi+bWH6vRIe5CjNGvpp9dbeY4JYUXNq5LcY6fA18YwgDyDRHLr2jCz/zc/YRvUSPkIzM1ApL85Co3FyQKCxkFENwiNTyUP00c/yqq8HWaceBQhcy9KniR/xpygz+WMBTKbagKQFZwcFxj7XB2n5y46JPwKmPya/zwfyR7C3vgnFrNg9QF+IHxrqEobm3/KD7iD64D527wGxTGINmUkUfbzXGOAEcjUJE9US4lFR47wx03x7FLMn5NsEp2YOznO4jdHTtrtrq+XrWRoEB6HOizDGIif7Ds3LMbhpznzV/knCLMDHxGL5ANxQue3PL0VCUH8FtYoIWdQCQsuEw/NrdRoK9a9OF8C29U5t3JNsCvknHrYObD5an5cjKzuxXhyf73O5xeep2QI4phJimV0K0JaAuspS2ipTXHqudYCv1kPiH1okXc4WbmLqKevAYzzgR1i+jIinoCZDw7rJMTPaNmeBINukhPPMWEQsLfXXH0=
Expand Down
17 changes: 17 additions & 0 deletions features/steps/take_turns.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from behave import given, when, then


@given('driver starts turn')
def step_impl(context):
pass


@when('turn ends')
def step_impl(context):
pass


@then('a notification shows "{message}"')
def step_impl(context, message):
if message not in context.response:
fail('notification does not show %r' % (message,))
10 changes: 10 additions & 0 deletions features/take_turns.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@wip
Feature: take_turns
In order to rotate team members in a mob
As a driver
I want to be notified, when my turn is over

Scenario: driver is notified when turn ends
Given driver starts turn
When turn ends
Then a notification shows "rotate"
38 changes: 37 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ python = "^3.6"
PyHamcrest = "^1.9"
pytest = "^4.2"
pre-commit = "^1.14"
behave = "^1.2"

[build-system]
requires = ["poetry>=0.12"]
Expand Down