示例#1
0
文件: todo.py 项目: parallel-p/please
def show_block(problem):
    return {
        'status_description':
        TodoGenerator.get_status_description(problem.path),
        'tests_count': TodoGenerator.generated_tests_count(problem.path),
        'samples_present': TodoGenerator.sample_tests_count(problem.path) > 0,
    }
示例#2
0
文件: todo.py 项目: dubov94/please
def show_block(problem):
    return {
        'status_description': TodoGenerator.get_status_description(problem.path),
        'tests_count': TodoGenerator.generated_tests_count(problem.path),
        'samples_present': TodoGenerator.sample_tests_count(problem.path) > 0,
    }
示例#3
0
 def test_generated_tests_count(self):
     with patch("please.utils.utests.get_tests", return_value=[1, 2, 3]):
         self.assertEqual(TodoGenerator.generated_tests_count(), 3)
示例#4
0
 def test_generated_tests_count(self):
     with patch('please.utils.utests.get_tests', return_value=[1, 2, 3]):
         self.assertEqual(TodoGenerator.generated_tests_count(), 3)