Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed unit tests

  • Loading branch information...
commit 55e63b7fee18ac7c6b947496e2353b470823adfd 1 parent b110f97
@heynemann authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/unit/test_core.py
View
5 tests/unit/test_core.py
@@ -68,7 +68,7 @@ def test_pyccuracy_core_run_tests():
runner_mock = Mock()
parser_mock = Mock()
-
+ parser_mock.used_actions = []
parser_mock.expects(once()).method('get_stories').will(return_value(suite_mock))
runner_mock.expects(once()).method('run_stories').will(return_value(results_mock))
@@ -92,7 +92,7 @@ def test_pyccuracy_core_run_tests_works_when_None_Result_returned_from_story_run
runner_mock = Mock()
parser_mock = Mock()
-
+ parser_mock.used_actions = []
parser_mock.expects(once()).method('get_stories').will(return_value(suite_mock))
runner_mock.expects(once()).method('run_stories').will(return_value(None))
@@ -119,6 +119,7 @@ def do_run_tests_should_throw():
runner_mock = Mock()
parser_mock = Mock()
+ parser_mock.used_actions = []
parser_mock.expects(once()).method('get_stories').will(return_value(suite_mock))
runner_mock.expects(once()).method('run_stories').will(return_value(results_mock))
Please sign in to comment.
Something went wrong with that request. Please try again.