Exemple #1
0
 def report(self):
     if self.templated_count == 0:
         reporter.report_no_action()
     elif self.templated_count == self.file_count:
         reporter.report_full_run(self.file_count)
     else:
         reporter.report_partial_run(self.templated_count, self.file_count)
Exemple #2
0
def test_no_action():
    patcher = patch("sys.stdout", new_callable=StringIO)
    fake_stdout = patcher.start()
    reporter.report_no_action()
    patcher.stop()
    eq_(fake_stdout.getvalue(), "No templating\n")