Exemplo n.º 1
0
def test_update_point_cloud(projects_fixture, point_cloud_fixture,
                            convert_to_potree_mock):
    data = {
        'description': "new description",
        'conversion_parameters': "--scale 5.0"
    }
    point_cloud = PointCloudService.update(point_cloud_fixture.id, data=data)
    convert_to_potree_mock.apply_async.assert_called_once()
    assert point_cloud.description == "new description"
    assert point_cloud.conversion_parameters == "--scale 5.0"
Exemplo n.º 2
0
def test_update_point_cloud_without_changing_conversion_parameters(
        projects_fixture, point_cloud_fixture, convert_to_potree_mock):
    data = {'description': "new description"}
    point_cloud = PointCloudService.update(point_cloud_fixture.id, data=data)
    convert_to_potree_mock.apply_async.assert_not_called()
    assert point_cloud.description == "new description"
Exemplo n.º 3
0
 def put(self, projectId: int, pointCloudId: int):
     # TODO consider adding status to point cloud as we aren't returning task
     return PointCloudService.update(pointCloudId=pointCloudId,
                                     data=api.payload)