コード例 #1
0
 def topic(self):
     dummySuite = {'dummySuite': set([SkipIsRaisedFromTopic])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, False)
     results = runner.run()
     return results
コード例 #2
0
 def topic(self):
     dummySuite = {'dummySuite': set([SubcontextHasSkipDecorator])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, False)
     results = runner.run()
     return results
コード例 #3
0
 def topic(self):
     dummySuite = {'dummySuite': set([WhenTeardownIsDefined])}
     execution_plan = ExecutionPlanner(
         dummySuite, set(), set(['excluded_vows_do_not_block'])).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, False)
     return runner.run()
コード例 #4
0
 def run(cls, on_vow_success, on_vow_error):
     #   FIXME: Add Docstring
     #
     #       *   Used by `run()` in `cli.py`
     #       *   Please add a useful description if you wrote this! :)
     runner = VowsRunner(cls.suites, cls.Context, on_vow_success,
                         on_vow_error, cls.exclusion_patterns)
     return runner.run()
コード例 #5
0
 def topic(self):
     dummySuite = {
         'dummySuite': set([OverlappingIgnores1, OverlappingIgnores2])
     }
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan)
     return runner.run()
コード例 #6
0
ファイル: core.py プロジェクト: ricklupton/pyvows
 def run(cls, on_vow_success, on_vow_error):
     #   FIXME: Add Docstring
     #
     #       *   Used by `run()` in `cli.py`
     #       *   Please add a useful description if you wrote this! :)
     runner = VowsRunner(cls.suites,
                                 cls.Context,
                                 on_vow_success,
                                 on_vow_error,
                                 cls.exclusion_patterns)
     return runner.run()
コード例 #7
0
ファイル: core.py プロジェクト: usteiner9/pyvows
    def run(cls, on_vow_success, on_vow_error, capture_error=False):
        #   FIXME: Add Docstring
        #
        #       *   Used by `run()` in `cli.py`
        #       *   Please add a useful description if you wrote this! :)

        execution_plan = ExecutionPlanner(cls.suites,
                                          set(cls.exclusion_patterns),
                                          set(cls.inclusion_patterns)).plan()

        runner = VowsRunner(cls.suites, cls.Context, on_vow_success,
                            on_vow_error, execution_plan, capture_error)
        return runner.run()
コード例 #8
0
ファイル: core.py プロジェクト: coreypobrien/pyvows
    def run(cls, on_vow_success, on_vow_error, capture_error=False):
        #   FIXME: Add Docstring
        #
        #       *   Used by `run()` in `cli.py`
        #       *   Please add a useful description if you wrote this! :)

        execution_plan = ExecutionPlanner(cls.suites, set(cls.exclusion_patterns), set(cls.inclusion_patterns)).plan()

        runner = VowsRunner(
            cls.suites,
            cls.Context,
            on_vow_success,
            on_vow_error,
            execution_plan,
            capture_error
        )
        return runner.run()
コード例 #9
0
ファイル: patch.py プロジェクト: yash-dholakia/python-jwt
 def run(cls, on_vow_success, on_vow_error):
     # Run batches in series
     r = VowsResult()
     for suite, batches in Vows.suites.items():
         for batch in batches:
             result = VowsRunner({suite: [batch]},
                                 Vows.Context,
                                 on_vow_success,
                                 on_vow_error,
                                 Vows.exclusion_patterns).run()
             r.contexts += result.contexts
             r.elapsed_time += result.elapsed_time
     return r
コード例 #10
0
ファイル: patch.py プロジェクト: albertoniderhofer/testRepo1
 def run(cls, on_vow_success, on_vow_error, capture_error=False):
     # Run batches in series
     r = VowsResult()
     for suite, batches in Vows.suites.items():
         for batch in batches:
             suites = {suite: [batch]}
             plan = ExecutionPlanner(suites, set(Vows.exclusion_patterns),
                                     set(Vows.inclusion_patterns)).plan()
             result = VowsRunner(suites, Vows.Context, on_vow_success,
                                 on_vow_error, plan, capture_error).run()
             r.contexts += result.contexts
             r.elapsed_time += result.elapsed_time
     return r
コード例 #11
0
ファイル: skipping_vows.py プロジェクト: coreypobrien/pyvows
 def topic(self):
     dummySuite = {'dummySuite': set([SkipIsRaisedFromTopic])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None, execution_plan, False)
     results = runner.run()
     return results
コード例 #12
0
 def topic(self):
     dummySuite = {'dummySuite': set([WhenTeardownRaisesException])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, False)
     return runner.run()
コード例 #13
0
 def topic(self):
     dummySuite = {'dummySuite': set([WhenTeardownRaisesException])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None, execution_plan, False)
     return runner.run()
コード例 #14
0
 def topic(self):
     dummySuite = {'dummySuite': set([WhenTeardownIsDefined])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set(['excluded_vows_do_not_block'])).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None, execution_plan, False)
     return runner.run()
コード例 #15
0
ファイル: test_pyvows_runner.py プロジェクト: douglas/pyvows
def test_when_not_have_olders_topics():
    r = VowsRunner(None, None)
    assert_it([], r.pop_topics([]))
コード例 #16
0
ファイル: test_pyvows_runner.py プロジェクト: douglas/pyvows
def test_when_have_a_old_topic():
    r = VowsRunner(None, None)
    assert_it([1], r.pop_topics([1]))
コード例 #17
0
 def topic(self):
     dummySuite = {'dummySuite': set([PrintSomeStuff])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None,
                         execution_plan, True)
     return runner.run()
コード例 #18
0
ファイル: test_pyvows_runner.py プロジェクト: douglas/pyvows
def test_when_have_2_old_topics():
    r = VowsRunner(None, None)
    assert_it([2], r.pop_topics([1, 2]))
コード例 #19
0
ファイル: test_pyvows_runner.py プロジェクト: douglas/pyvows
def test_when_the_last_topic_is_none_return_the_parent_value():
    r = VowsRunner(None, None)
    assert_it([1], r.pop_topics([1, None, None, None]))
コード例 #20
0
ファイル: skipping_vows.py プロジェクト: coreypobrien/pyvows
 def topic(self):
     dummySuite = {'dummySuite': set([SubcontextHasSkipDecorator])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None, execution_plan, False)
     results = runner.run()
     return results
コード例 #21
0
ファイル: test_pyvows_runner.py プロジェクト: douglas/pyvows
def test_when_should_get_a_specifc_num_of_topics():
    r = VowsRunner(None, None)
    assert_it([5, 4, 3], r.pop_topics([1, 2, 3, 4, 5], num=3))
コード例 #22
0
 def topic(self):
     dummySuite = {'dummySuite': set([OverlappingIgnores1, OverlappingIgnores2])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None, execution_plan)
     return runner.run()
コード例 #23
0
 def topic(self):
     dummySuite = {'dummySuite': set([PrintSomeStuff])}
     execution_plan = ExecutionPlanner(dummySuite, set(), set()).plan()
     runner = VowsRunner(dummySuite, Vows.Context, None, None, execution_plan, True)
     return runner.run()
コード例 #24
0
ファイル: test_pyvows_runner.py プロジェクト: douglas/pyvows
def test_when_get_topics_form_contexts_that_not_have_topic():
    r = VowsRunner(None, None)
    assert_it([5, 3, 2], r.pop_topics([1, 2, 3, None, 5, None], num=3))