From 6510b5e5ad93a3a5bf9e3255b33f96dd349a7784 Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Thu, 14 Mar 2024 11:39:21 +0100 Subject: [PATCH] clean tests for now --- tests_qgis/unit/__init__.py | 0 tests_qgis/unit/converter/__init__.py | 0 .../test_feature_conversions_qgis.py | 8 -- .../feature_tests/test_feature_utils_qgis.py | 129 ------------------ .../unit/converter/geometry_tests/__init__.py | 0 .../unit/converter/geometry_tests/conftest.py | 127 ----------------- .../geometry_tests/test_conversions_qgis.py | 92 ------------- .../geometry_tests/test_mesh_mixed.py | 51 ------- .../geometry_tests/test_point_mixed.py | 41 ------ .../geometry_tests/test_polygon_qgis.py | 8 -- .../geometry_tests/test_polyline_qgis.py | 17 --- .../geometry_tests/test_transform.py | 27 ---- .../geometry_tests/test_utils_mixed.py | 36 ----- .../unit/converter/layer_tests/__init__.py | 0 .../test_layer_conversions_qgis.py | 17 --- .../layer_tests/test_layer_init_qgis.py | 9 -- .../layer_tests/test_layer_symbology_qgis.py | 10 -- .../layer_tests/test_layer_utils_qgis.py | 27 ---- tests_qgis/unit/ui_widgets/__init__.py | 0 tests_qgis/unit/ui_widgets/test_dockwidget.py | 7 - .../unit/ui_widgets/test_transform_widget.py | 7 - tests_qgis/unit/utils/__init__.py | 0 tests_qgis/unit/utils/test_validation.py | 0 23 files changed, 613 deletions(-) delete mode 100644 tests_qgis/unit/__init__.py delete mode 100644 tests_qgis/unit/converter/__init__.py delete mode 100644 tests_qgis/unit/converter/feature_tests/test_feature_conversions_qgis.py delete mode 100644 tests_qgis/unit/converter/feature_tests/test_feature_utils_qgis.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/__init__.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/conftest.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/test_conversions_qgis.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/test_mesh_mixed.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/test_point_mixed.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/test_polygon_qgis.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/test_polyline_qgis.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/test_transform.py delete mode 100644 tests_qgis/unit/converter/geometry_tests/test_utils_mixed.py delete mode 100644 tests_qgis/unit/converter/layer_tests/__init__.py delete mode 100644 tests_qgis/unit/converter/layer_tests/test_layer_conversions_qgis.py delete mode 100644 tests_qgis/unit/converter/layer_tests/test_layer_init_qgis.py delete mode 100644 tests_qgis/unit/converter/layer_tests/test_layer_symbology_qgis.py delete mode 100644 tests_qgis/unit/converter/layer_tests/test_layer_utils_qgis.py delete mode 100644 tests_qgis/unit/ui_widgets/__init__.py delete mode 100644 tests_qgis/unit/ui_widgets/test_dockwidget.py delete mode 100644 tests_qgis/unit/ui_widgets/test_transform_widget.py delete mode 100644 tests_qgis/unit/utils/__init__.py delete mode 100644 tests_qgis/unit/utils/test_validation.py diff --git a/tests_qgis/unit/__init__.py b/tests_qgis/unit/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests_qgis/unit/converter/__init__.py b/tests_qgis/unit/converter/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests_qgis/unit/converter/feature_tests/test_feature_conversions_qgis.py b/tests_qgis/unit/converter/feature_tests/test_feature_conversions_qgis.py deleted file mode 100644 index 20686e8a..00000000 --- a/tests_qgis/unit/converter/feature_tests/test_feature_conversions_qgis.py +++ /dev/null @@ -1,8 +0,0 @@ -from speckle.converter.features.feature_conversions import ( - featureToSpeckle, - rasterFeatureToSpeckle, - featureToNative, - bimFeatureToNative, - nonGeomFeatureToNative, - cadFeatureToNative, -) diff --git a/tests_qgis/unit/converter/feature_tests/test_feature_utils_qgis.py b/tests_qgis/unit/converter/feature_tests/test_feature_utils_qgis.py deleted file mode 100644 index 73e6e694..00000000 --- a/tests_qgis/unit/converter/feature_tests/test_feature_utils_qgis.py +++ /dev/null @@ -1,129 +0,0 @@ -import pytest -from speckle.converter.features.utils import ( - addFeatVariant, - updateFeat, - getPolygonFeatureHeight, -) - -from specklepy.objects import Base -from specklepy_qt_ui.qt_ui.DataStorage import DataStorage - -try: - from qgis._core import ( - QgsCoordinateTransform, - Qgis, - QgsPointXY, - QgsGeometry, - QgsRasterBandStats, - QgsFeature, - QgsFields, - QgsField, - QgsVectorLayer, - QgsRasterLayer, - QgsCoordinateReferenceSystem, - QgsProject, - QgsUnitTypes, - ) -except ModuleNotFoundError: - pass - - -@pytest.fixture() -def data_storage(): - sample_obj = DataStorage() - sample_obj.project = QgsProject.instance() - return sample_obj - - -def test_addFeatVariant(): - key = "some key" - variant = 10 # string - value = "value to add" - feature = QgsFeature() - result = addFeatVariant(key, variant, value, feature) - assert isinstance(result, QgsFeature) - - -def test_updateFeat(): - feat = QgsFeature() - fields = QgsFields() - fields.append(QgsField("attr1", 4)) - fields.append(QgsField("attr2", 10)) - fields.append(QgsField("attr3_attr31", 4)) - fields.append(QgsField("attr3_attr32", 4)) - feat.setFields(fields) - - base = Base() - base.attr1 = 1 - base.attr2 = "xx" - base.attr3 = Base() - base.attr3.attr31 = 222 - base.attr3.attr32 = 333 - - result = updateFeat(feat, fields, base) - assert isinstance(result, QgsFeature) - assert result["attr1"] == 1 - - -def test_getPolygonFeatureHeight(data_storage): - feat = QgsFeature() - fields = QgsFields() - fields.append(QgsField("height_m", 4)) - feat.setFields(fields) - feat["height_m"] = 10 - - geomType = "Polygon" - layer_name = "layer1" - layer = QgsVectorLayer(geomType + "?crs=" + "WGS84", layer_name, "memory") - # layer.setCrs(QgsCoordinateReferenceSystem(32630)) - - data_storage.project.setCrs(QgsCoordinateReferenceSystem(32630)) - data_storage.savedTransforms = [] - data_storage.savedTransforms.append( - layer_name + " ('height_m') -> Extrude polygon by selected attribute" - ) - result = getPolygonFeatureHeight(feat, layer, data_storage) - assert result == 10 - - -def test_getPolygonFeatureHeight_geo_crs(data_storage): - feat = QgsFeature() - fields = QgsFields() - fields.append(QgsField("height_m", 4)) - feat.setFields(fields) - feat["height_m"] = 10 - - geomType = "Polygon" - layer_name = "layer1" - layer = QgsVectorLayer(geomType + "?crs=" + "WGS84", layer_name, "memory") - - data_storage.project.setCrs(QgsCoordinateReferenceSystem(4326)) - data_storage.savedTransforms = [] - data_storage.savedTransforms.append( - layer_name + " ('height_m') -> Extrude polygon by selected attribute" - ) - result = getPolygonFeatureHeight(feat, layer, data_storage) - assert result is None - - -def test_getPolygonFeatureHeight_ignore(data_storage): - feat = QgsFeature() - fields = QgsFields() - fields.append(QgsField("height_m", 4)) - feat.setFields(fields) - feat["height_m"] = 10 - - geomType = "Polygon" - layer_name = "layer1" - layer = QgsVectorLayer(geomType + "?crs=" + "WGS84", layer_name, "memory") - # layer.setCrs(QgsCoordinateReferenceSystem(32630)) - - data_storage.project.setCrs(QgsCoordinateReferenceSystem(32630)) - data_storage.savedTransforms = [] - data_storage.savedTransforms.append( - layer_name - + " ('floors') -> Extrude polygon by selected attribute (randomly populate)" - ) - result = getPolygonFeatureHeight(feat, layer, data_storage) - assert isinstance(result, int) - assert 10 <= result <= 20 diff --git a/tests_qgis/unit/converter/geometry_tests/__init__.py b/tests_qgis/unit/converter/geometry_tests/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests_qgis/unit/converter/geometry_tests/conftest.py b/tests_qgis/unit/converter/geometry_tests/conftest.py deleted file mode 100644 index bc4cbe0a..00000000 --- a/tests_qgis/unit/converter/geometry_tests/conftest.py +++ /dev/null @@ -1,127 +0,0 @@ -import math -from typing import Union -import pytest -from specklepy_qt_ui.qt_ui.DataStorage import DataStorage - -from specklepy.objects.encoding import CurveTypeEncoding -from specklepy.objects.geometry import ( - Arc, - Line, - Polyline, - Mesh, - Point, - Plane, - Polycurve, - Vector, -) -from specklepy.objects.GIS.geometry import GisPolygonGeometry - -try: - from qgis.core import ( - QgsPoint, - QgsLineString, - QgsPolygon, - QgsProject, - ) -except ModuleNotFoundError: - pass - - -@pytest.fixture() -def data_storage(): - sample_obj = DataStorage() - sample_obj.project = QgsProject.instance() - return sample_obj - - -@pytest.fixture() -def qgis_polygon(): - geom = QgsPolygon() - linestring = QgsLineString() - linestring.addVertex(QgsPoint(4, 4, 0)) - linestring.addVertex(QgsPoint(-4, 4, 0)) - linestring.addVertex(QgsPoint(-4, -4, 0)) - linestring.addVertex(QgsPoint(4, -4, 0)) - - geom.setExteriorRing(linestring) - return geom - - -@pytest.fixture() -def polyline(): - polyline = Polyline() - polyline.value = [] - polyline.closed = True - polyline.units = "m" - polyline.value.extend([4, 4, 0]) - polyline.value.extend([-4, 4, 0]) - polyline.value.extend([-4, -4, 0]) - polyline.value.extend([4, -4, 0]) - return polyline - - -@pytest.fixture() -def polygon(): - polyline = Polyline() - polyline.value = [] - polyline.closed = True - polyline.units = "m" - polyline.value.extend([4, 4, 0]) - polyline.value.extend([-4, 4, 0]) - polyline.value.extend([-4, -4, 0]) - polyline.value.extend([4, -4, 0]) - - polyline2 = Polyline() - polyline2.value = [] - polyline2.closed = True - polyline2.units = "m" - polyline2.value.extend([4, 4, 0]) - polyline2.value.extend([-4, 4, 0]) - polyline2.value.extend([-4, -4, 0]) - polyline2.value.extend([4, -4, 0]) - - geom = GisPolygonGeometry() - geom.boundary = polyline - geom.voids = [polyline2] - geom.displayValue = [] - return geom - - -@pytest.fixture() -def arc(): - arc = Arc() - arc.startPoint = Point.from_list([-5, 0, 0]) - arc.midPoint = Point.from_list([0, 5, 0]) - arc.endPoint = Point.from_list([5, 0, 0]) - arc.plane = Plane() - arc.plane.origin = Point.from_list([-5, 0, 0]) - arc.units = "m" - arc.plane.normal = Vector.from_list([0, 0, 1]) - arc.plane.origin.units = "m" - arc.radius = 5 - arc.angleRadians = math.pi - return arc - - -@pytest.fixture() -def polycurve(): - poly = Polycurve() - segm1 = Line.from_list( - [CurveTypeEncoding.Line.value, -10, 0, 0, -5, 0, 0, -5, 0, 0, 3] - ) - segm2 = Line.from_list( - [CurveTypeEncoding.Line.value, -5, 0, 0, 0, 0, 0, -5, 0, 0, 3] - ) - # segm2 = Polyline() - # segm3 = Arc() - poly.segments = [segm1, segm2] # , segm3] - return poly - - -@pytest.fixture() -def mesh(): - mesh_obj = Mesh().create( - vertices=[0, 0, 0, 100, 0, 0, 0, 100, 0], faces=[3, 0, 1, 2] - ) - mesh.units = "m" - return mesh_obj diff --git a/tests_qgis/unit/converter/geometry_tests/test_conversions_qgis.py b/tests_qgis/unit/converter/geometry_tests/test_conversions_qgis.py deleted file mode 100644 index 9125f98c..00000000 --- a/tests_qgis/unit/converter/geometry_tests/test_conversions_qgis.py +++ /dev/null @@ -1,92 +0,0 @@ -import pytest - - -from speckle.converter.geometry.conversions import ( - convertToSpeckle, - convertToNative, - multiPointToNative, - multiPolylineToNative, - multiPolygonToNative, - convertToNativeMulti, -) - -from specklepy.objects import Base -from specklepy.objects.GIS.geometry import GisPolygonGeometry - -from specklepy.objects.geometry import ( - Line, - Mesh, - Point, - Polyline, - Curve, - Arc, - Circle, - Ellipse, - Polycurve, -) - -try: - from qgis.core import ( - QgsPoint, - QgsFeature, - QgsLineString, - QgsMultiPoint, - QgsMultiLineString, - QgsMultiPolygon, - QgsPolygon, - QgsVectorLayer, - ) -except ModuleNotFoundError: - pass - - -def test_convertToSpeckle(data_storage): - pt = QgsPoint(0, 0, 0) - feature = QgsFeature() - feature.setGeometry(pt) - - geomType = "Point" - layer_name = "layer1" - - layer = QgsVectorLayer(geomType + "?crs=" + "WGS84", layer_name, "memory") - - result = convertToSpeckle(feature, layer, data_storage) - assert isinstance(result, tuple) - assert isinstance(result[0], Base) - assert isinstance(result[1], int) - - -def test_convertToNative_pt(data_storage): - pt = Point.from_list([0, 4, 0]) - pt.units = "m" - result = convertToNative(pt, data_storage) - assert isinstance(result, QgsPoint) - - -def test_convertToNative_polyline(polyline, data_storage): - result = convertToNative(polyline, data_storage) - assert isinstance(result, QgsLineString) - - -def test_multiPointToNative(data_storage): - pts = [Point.from_list([0, 4, 0]) for i in range(4)] - result = multiPointToNative(pts, data_storage) - assert isinstance(result, QgsMultiPoint) - - -def test_multiPolylineToNative(polyline, data_storage): - polylines = [polyline for i in range(4)] - result = multiPolylineToNative(polylines, data_storage) - assert isinstance(result, QgsMultiLineString) - - -def test_multiPolygonToNative(polygon, data_storage): - polygons = [polygon for i in range(4)] - result = multiPolygonToNative(polygons, data_storage) - assert isinstance(result, QgsMultiPolygon) - - -def test_convertToNativeMulti(polygon, data_storage): - polygons = [polygon for i in range(4)] - result = convertToNativeMulti(polygons, data_storage) - assert isinstance(result, QgsMultiPolygon) diff --git a/tests_qgis/unit/converter/geometry_tests/test_mesh_mixed.py b/tests_qgis/unit/converter/geometry_tests/test_mesh_mixed.py deleted file mode 100644 index 6d5cf5f7..00000000 --- a/tests_qgis/unit/converter/geometry_tests/test_mesh_mixed.py +++ /dev/null @@ -1,51 +0,0 @@ -from speckle.converter.geometry.mesh import ( - meshPartsFromPolygon, - meshToNative, -) -from typing import Tuple -import pathlib - -import shapefile -from specklepy.objects.geometry import Mesh - -try: - from qgis.core import ( - QgsFeature, - QgsVectorLayer, - QgsMultiPolygon, - ) -except ModuleNotFoundError: - pass - - -def test_meshPartsFromPolygon(polygon, data_storage): - polyBorder = polygon.boundary.as_points() - voidsAsPts = [] - existing_vert = 0 - feature = QgsFeature() - - geomType = "Polygon" - layer = QgsVectorLayer(geomType + "?crs=" + "WGS84", "", "memory") - height = None - result = meshPartsFromPolygon( - polyBorder, - voidsAsPts, - existing_vert, - feature, - polygon, - layer, - height, - data_storage, - ) - assert isinstance(result, Tuple) - assert len(result) == 5 - assert isinstance(result[0], int) - assert isinstance(result[1], list) - assert isinstance(result[2], list) - assert isinstance(result[3], list) - assert isinstance(result[4], int) - - -def test_meshToNative(mesh, data_storage): - result = meshToNative([mesh], data_storage) - assert isinstance(result, QgsMultiPolygon) diff --git a/tests_qgis/unit/converter/geometry_tests/test_point_mixed.py b/tests_qgis/unit/converter/geometry_tests/test_point_mixed.py deleted file mode 100644 index 386ff4ff..00000000 --- a/tests_qgis/unit/converter/geometry_tests/test_point_mixed.py +++ /dev/null @@ -1,41 +0,0 @@ -from speckle.converter.geometry.point import ( - pointToSpeckle, - pointToNative, - pointToNativeWithoutTransforms, -) -from specklepy.objects.geometry import Point - -try: - from qgis.core import ( - QgsPoint, QgsFeature, QgsVectorLayer - ) -except ModuleNotFoundError: - pass - -def test_pointToSpeckle(data_storage): - pt = QgsPoint(0,0,0) - feature = QgsFeature() - feature.setGeometry(pt) - - geomType = "Point" - layer_name = "layer1" - - layer = QgsVectorLayer( - geomType + "?crs=" + "WGS84", layer_name, "memory" - ) - xform = None - result = pointToSpeckle(pt, feature, layer, data_storage, xform) - assert isinstance(result, Point) - - -def test_pointToNative(data_storage): - pt = Point.from_list([0, 4, 0]) - result = pointToNative(pt, data_storage) - assert isinstance(result, QgsPoint) - - -def test_pointToNativeWithoutTransforms(data_storage): - pt = Point.from_list([0, 4, 0]) - result = pointToNativeWithoutTransforms(pt, data_storage) - assert isinstance(result, QgsPoint) - diff --git a/tests_qgis/unit/converter/geometry_tests/test_polygon_qgis.py b/tests_qgis/unit/converter/geometry_tests/test_polygon_qgis.py deleted file mode 100644 index 8ea8bda9..00000000 --- a/tests_qgis/unit/converter/geometry_tests/test_polygon_qgis.py +++ /dev/null @@ -1,8 +0,0 @@ -from speckle.converter.geometry.polygon import ( - polygonToSpeckleMesh, - getZaxisTranslation, - isFlat, - polygonToSpeckle, - polygonToNative, - getPolyBoundaryVoids, -) diff --git a/tests_qgis/unit/converter/geometry_tests/test_polyline_qgis.py b/tests_qgis/unit/converter/geometry_tests/test_polyline_qgis.py deleted file mode 100644 index 7f19f87e..00000000 --- a/tests_qgis/unit/converter/geometry_tests/test_polyline_qgis.py +++ /dev/null @@ -1,17 +0,0 @@ -from speckle.converter.geometry.polyline import ( - polylineFromVerticesToSpeckle, - unknownLineToSpeckle, - compoudCurveToSpeckle, - anyLineToSpeckle, - polylineToSpeckle, - arcToSpeckle, - getArcCenter, - lineToNative, - polylineToNative, - ellipseToNative, - curveToNative, - arcToNative, - circleToNative, - polycurveToNative, - speckleEllipseToPoints, -) diff --git a/tests_qgis/unit/converter/geometry_tests/test_transform.py b/tests_qgis/unit/converter/geometry_tests/test_transform.py deleted file mode 100644 index 5965c02c..00000000 --- a/tests_qgis/unit/converter/geometry_tests/test_transform.py +++ /dev/null @@ -1,27 +0,0 @@ -import pytest - -from speckle.converter.geometry.transform import transform - -try: - from qgis.core import ( - QgsProject, - QgsCoordinateReferenceSystem, - QgsCoordinateTransform, - QgsPointXY, - QgsProject, - QgsCoordinateReferenceSystem, - QgsCoordinateTransform, - QgsPointXY, - ) -except ModuleNotFoundError: - pass - - -def test_transform(data_storage): - project = data_storage.project - pt = QgsPointXY(0, 0) - crsSrc = QgsCoordinateReferenceSystem(4326) - crsDest = QgsCoordinateReferenceSystem(4326) - result = transform(project, pt, crsSrc, crsDest) - assert isinstance(result, QgsPointXY) - assert result == pt diff --git a/tests_qgis/unit/converter/geometry_tests/test_utils_mixed.py b/tests_qgis/unit/converter/geometry_tests/test_utils_mixed.py deleted file mode 100644 index c727792e..00000000 --- a/tests_qgis/unit/converter/geometry_tests/test_utils_mixed.py +++ /dev/null @@ -1,36 +0,0 @@ -import pytest - - -from speckle.converter.geometry.utils import ( - triangulatePolygon, - getPolyPtsSegments, -) - -try: - from qgis.core import ( - QgsPoint, - QgsLineString, - QgsPolygon, - ) -except ModuleNotFoundError: - pass - - -def test_triangulatePolygon(qgis_polygon, data_storage): - result = triangulatePolygon(qgis_polygon, data_storage) - assert isinstance(result, tuple) - assert len(result) == 3 - assert isinstance(result[0], dict) - assert isinstance(result[1], list) - assert isinstance(result[2], int) - - -def test_getPolyPtsSegments(qgis_polygon, data_storage): - result = getPolyPtsSegments(qgis_polygon, data_storage, None) - assert isinstance(result, tuple) - assert len(result) == 4 - assert isinstance(result[0], list) - assert isinstance(result[1], list) - assert isinstance(result[2], list) - assert isinstance(result[3], list) - assert len(result[3]) == 0 diff --git a/tests_qgis/unit/converter/layer_tests/__init__.py b/tests_qgis/unit/converter/layer_tests/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests_qgis/unit/converter/layer_tests/test_layer_conversions_qgis.py b/tests_qgis/unit/converter/layer_tests/test_layer_conversions_qgis.py deleted file mode 100644 index 0c360981..00000000 --- a/tests_qgis/unit/converter/layer_tests/test_layer_conversions_qgis.py +++ /dev/null @@ -1,17 +0,0 @@ -from speckle.converter.layers.layer_conversions import ( - convertSelectedLayersToSpeckle, - layerToSpeckle, - layerToNative, - nonGeometryLayerToNative, - addExcelMainThread, - addNonGeometryMainThread, - geometryLayerToNative, - bimVectorLayerToNative, - addBimMainThread, - cadVectorLayerToNative, - addCadMainThread, - vectorLayerToNative, - addVectorMainThread, - rasterLayerToNative, - addRasterMainThread, -) diff --git a/tests_qgis/unit/converter/layer_tests/test_layer_init_qgis.py b/tests_qgis/unit/converter/layer_tests/test_layer_init_qgis.py deleted file mode 100644 index 1effd4a8..00000000 --- a/tests_qgis/unit/converter/layer_tests/test_layer_init_qgis.py +++ /dev/null @@ -1,9 +0,0 @@ -from speckle.converter.layers import ( - getAllLayers, - getAllLayersWithTree, - findAndClearLayerGroup, - getSavedLayers, - getSelectedLayers, - getSelectedLayersWithStructure, - getTreeFromLayers, -) diff --git a/tests_qgis/unit/converter/layer_tests/test_layer_symbology_qgis.py b/tests_qgis/unit/converter/layer_tests/test_layer_symbology_qgis.py deleted file mode 100644 index 7362e75e..00000000 --- a/tests_qgis/unit/converter/layer_tests/test_layer_symbology_qgis.py +++ /dev/null @@ -1,10 +0,0 @@ -from speckle.converter.layers.symbology import ( - featureColorfromNativeRenderer, - gradientColorRampToSpeckle, - gradientColorRampToNative, - get_r_g_b, - vectorRendererToNative, - makeDefaultRenderer, - rasterRendererToNative, - rendererToSpeckle, -) diff --git a/tests_qgis/unit/converter/layer_tests/test_layer_utils_qgis.py b/tests_qgis/unit/converter/layer_tests/test_layer_utils_qgis.py deleted file mode 100644 index 0395c0ce..00000000 --- a/tests_qgis/unit/converter/layer_tests/test_layer_utils_qgis.py +++ /dev/null @@ -1,27 +0,0 @@ -from speckle.converter.layers.utils import ( - generate_qgis_app_id, - generate_qgis_raster_app_id, - getLayerGeomType, - getVariantFromValue, - colorFromSpeckle, - getLayerAttributes, - traverseDict, - validateAttributeName, - trySaveCRS, - reprojectPt, - getClosestIndex, - getArrayIndicesFromXY, - getHeightWithRemainderFromArray, - getXYofArrayPoint, - isAppliedLayerTransformByKeywords, - getElevationLayer, - get_raster_stats, - getRasterArrays, - moveVertically, - moveVerticallySegment, - tryCreateGroupTree, - tryCreateGroup, - findUpdateJsonItemPath, - collectionsFromJson, - getDisplayValueList, -) diff --git a/tests_qgis/unit/ui_widgets/__init__.py b/tests_qgis/unit/ui_widgets/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests_qgis/unit/ui_widgets/test_dockwidget.py b/tests_qgis/unit/ui_widgets/test_dockwidget.py deleted file mode 100644 index 72c9bc0f..00000000 --- a/tests_qgis/unit/ui_widgets/test_dockwidget.py +++ /dev/null @@ -1,7 +0,0 @@ -from speckle.ui_widgets.dockwidget_main import SpeckleQGISDialog - - -def test_create_widget(): - # widget = SpeckleQGISDialog() - # widget.createMappingDialog() - assert True diff --git a/tests_qgis/unit/ui_widgets/test_transform_widget.py b/tests_qgis/unit/ui_widgets/test_transform_widget.py deleted file mode 100644 index 1d1675b6..00000000 --- a/tests_qgis/unit/ui_widgets/test_transform_widget.py +++ /dev/null @@ -1,7 +0,0 @@ -from speckle.ui_widgets.widget_transforms import MappingSendDialogQGIS - - -def test_create_widget(): - # widget = MappingSendDialogQGIS() - # widget.runSetup() - assert True diff --git a/tests_qgis/unit/utils/__init__.py b/tests_qgis/unit/utils/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests_qgis/unit/utils/test_validation.py b/tests_qgis/unit/utils/test_validation.py deleted file mode 100644 index e69de29b..00000000