コード例 #1
0
ファイル: testfinder.py プロジェクト: nagyist/agilo
 def _is_excluded_by_nose(self, cls):
     # Here with gusto, so create_demo_data.py can import the testfinder from the
     # binary egg.
     from agilo.test.nose_testselector import NoseExcludeUnittestRunnerFunctions
     nose_exlude_filter = NoseExcludeUnittestRunnerFunctions()
     return False == nose_exlude_filter.wantClass(cls)
コード例 #2
0
 def _plugin(self):
     plugin = NoseExcludeUnittestRunnerFunctions()
     plugin.configure(Mock(only_real_tests=True), Config())
     self.assert_true(plugin.enabled)
     return plugin
コード例 #3
0
ファイル: testfinder.py プロジェクト: djangsters/agilo
 def _is_excluded_by_nose(self, cls):
     # Here with gusto, so create_demo_data.py can import the testfinder from the
     # binary egg.
     from agilo.test.nose_testselector import NoseExcludeUnittestRunnerFunctions
     nose_exlude_filter = NoseExcludeUnittestRunnerFunctions()
     return False == nose_exlude_filter.wantClass(cls)
コード例 #4
0
 def _plugin(self):
     plugin = NoseExcludeUnittestRunnerFunctions()
     plugin.configure(Mock(only_real_tests=True), Config())
     self.assert_true(plugin.enabled)
     return plugin