Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timofurrer committed Oct 5, 2015
1 parent 54329a4 commit b8328ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_console_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ def patched_write(text):
with patch("radish.extensions.console_writer.write", side_effect=patched_write):
HookRegistry().call("before", "each_feature", feature)

data.console.should.be.equal("Feature: Some feature")
data.console.should.be.equal("Feature: Some feature # somefile.feature")

feature.description.append("This is some description")
feature.description.append("Because I want to test it")

with patch("radish.extensions.console_writer.write", side_effect=patched_write):
HookRegistry().call("before", "each_feature", feature)

data.console.should.be.equal("""Feature: Some feature
data.console.should.be.equal("""Feature: Some feature # somefile.feature
This is some description
Because I want to test it""")

Expand Down

0 comments on commit b8328ff

Please sign in to comment.