def setUp(self) -> None: self.house = HouseFactory() self.ids = count(0) self.alarm_statuses = [ AlarmStatusFactory(), ]
def setUp(self) -> None: self.house = HouseFactory() self.running_alarm_statuses = [ AlarmStatusFactory(running=True), AlarmStatusFactory(running=True) ] super().setUp()
def setUp(self) -> None: self.client = Client() self.user = AccountFactory() self.alarm_statuses = [ AlarmStatusFactory(), AlarmStatusFactory(), ] self.house = HouseFactory() self.client.force_login(self.user)
def setUp(self) -> None: self.house = HouseFactory() self.running_alarm_statuses = [ AlarmStatusFactory(running=True), AlarmStatusFactory(running=True) ] self.schedule: AlarmSchedule = AlarmScheduleFactory() for status in self.running_alarm_statuses: self.schedule.alarm_statuses.add(status)
def setUp(self) -> None: self.house = HouseFactory() self.device1 = DeviceFactory() self.device2 = DeviceFactory() self.devices = [self.device1, self.device2] self.running_alarm_statuses = [ AlarmStatusFactory(running=True, device=self.device1), AlarmStatusFactory(running=True, device=self.device2) ] for status in self.running_alarm_statuses: Ping.objects.create( device_id=status.device.device_id, service_name='object_detection', consecutive_failures=2, last_update=timezone.now() )
def setUp(self) -> None: HouseFactory()
def setUp(self) -> None: self.alarm_statuses = [ AlarmStatusFactory(), AlarmStatusFactory(), ] self.house = HouseFactory()