@classmethod
    def setUpClass(cls):
        before = timedelta(minutes=5) - datetime.utcnow()

        failed = RepeatRecord(
            domain=cls.domain,
            failure_reason='Some python error',
            repeater_id=cls.repeater_id,
            next_event=before,
        )
        success = RepeatRecord(
            domain=cls.domain,
            succeeded=True,
            repeater_id=cls.repeater_id,
            next_event=before,
        )
        pending = RepeatRecord(
            domain=cls.domain,
            succeeded=False,
            repeater_id=cls.repeater_id,
            next_event=before,
        )
        other_id = RepeatRecord(
            domain=cls.domain,
            succeeded=False,
            repeater_id=cls.other_id,
            next_event=before,
        )

        cls.records = [
            failed,
            success,
            pending,
            other_id,
        ]

        for record in cls.records:
            record.save()
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/repeaters/tests/test_dbaccessors.py/TestRepeatRecordDBAccessors.setUpClass/swapped operands of `-`