Skip to content

Commit

Permalink
Skip tests broken because of pytest-dev/pytest-bdd#250
Browse files Browse the repository at this point in the history
  • Loading branch information
chovanecm committed Aug 24, 2018
1 parent 90e3c34 commit b78c54c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js text eol=lf
13 changes: 7 additions & 6 deletions sacredboard/tests/business/test_runfacade.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,27 @@
from sacredboard.app.data.rundao import RunDAO


@pytest.mark.skip(reason="Bug in pytest-bdd https://github.com/pytest-dev/pytest-bdd/issues/250")
@scenario('runfacade.feature', 'Removing a run')
def test_removing_a_run():
def test_removing_a_run1():
"""Removing a run."""
pass


@pytest.mark.skip(reason="Bug in pytest-bdd https://github.com/pytest-dev/pytest-bdd/issues/250")
@scenario('runfacade.feature', 'Removing a run when two runs exist')
def test_removing_a_run():
def test_abcremoving_a_run2():
"""Removing a run when two runs exist"""
pass


@pytest.mark.skip(reason="Bug in pytest-bdd https://github.com/pytest-dev/pytest-bdd/issues/250")
@scenario('runfacade.feature', 'Removing a run with two metrics')
def test_removing_a_run_with_two_metrics():
"""Removing a run with two metrics"""
pass


@when(parsers.parse('Run {run_id:d} exists'))
def a_run_exists(data_access, run_id):
def a_run_exists(run_id, data_access):
"""A run exists."""
data_access.get_run_dao().should_receive("get").with_args(run_id) \
.and_return({"_id": run_id})
Expand Down Expand Up @@ -114,4 +115,4 @@ def data_access():

@pytest.fixture()
def run_facade(data_access):
return RunFacade(data_access)
return RunFacade(data_access)

0 comments on commit b78c54c

Please sign in to comment.