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, }
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)
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)