Ejemplo n.º 1
0
 def test_audit_progress_report(self):
     """
     Test that audit progress report returns correct figures
     """
     report = progress.AuditProgressReport(self.tally.id)
     self.assertEqual(report.number, 1)
     self.assertEqual(report.total, 10)
     self.assertEqual(report.percentage, 10)
Ejemplo n.º 2
0
def getOverviews(tally_id):
    overviews = [
            p.ExpectedProgressReport(tally_id),
            p.IntakeProgressReport(tally_id),
            p.DataEntry1ProgressReport(tally_id),
            p.DataEntry2ProgressReport(tally_id),
            p.CorrectionProgressReport(tally_id),
            p.QualityControlProgressReport(tally_id),
            p.ArchivedProgressReport(tally_id),
            p.ClearanceProgressReport(tally_id),
            p.AuditProgressReport(tally_id),
            p.NotRecievedProgressReport(tally_id)
    ]

    return overviews
Ejemplo n.º 3
0
    def get(self, *args, **kwargs):
        overviews = [
            p.ExpectedProgressReport(),
            p.IntakenProgressReport(),
            p.DataEntry1ProgressReport(),
            p.DataEntry2ProgressReport(),
            p.CorrectionProgressReport(),
            p.QualityControlProgressReport(),
            p.ArchivingProgressReport(),
            p.ArchivedProgressReport(),
            p.ClearanceProgressReport(),
            p.AuditProgressReport(),
            p.NotRecievedProgressReport()
        ]

        return self.render_to_response(
            self.get_context_data(overviews=overviews,
                                  per_office=self.get_per_office_progress()))
Ejemplo n.º 4
0
 def test_audit_progress_report(self):
     report = progress.AuditProgressReport()
     self.assertEqual(report.number, 1)
     self.assertEqual(report.total, 11)
     self.assertEqual(report.percentage, 9.090909090909092)