Exemple #1
0
    def test_synchronize(self, device_manager):
        device = Device(id=self.device_id)

        device_services.synchronize(device)

        device_manager().synchronize.assert_called_with(self.device_id)
Exemple #2
0
    def test_synchronize(self, device_manager):
        device = Device(id=self.device_id)

        device_services.synchronize(device)

        device_manager().synchronize.assert_called_with(self.device_id)
Exemple #3
0
def synchronize(deviceid):
    device = device_services.get(deviceid)
    device_services.synchronize(device)
    return make_response('', 204)
Exemple #4
0
def synchronize(deviceid):
    device = device_services.get(deviceid)
    device_services.synchronize(device)
    return make_response('', 204)