Skip to content

Instantly share code, notes, and snippets.

@ghtmtt
Last active Mar 12, 2020
Embed
What would you like to do?
----------------------------------------
Compiled translation files to .qm files.
----------------------------------------
Processing: DataPlotly/i18n/DataPlotly_en.ts
Updating 'DataPlotly/i18n/DataPlotly_en.qm'...
Generated 0 translation(s) (0 finished and 0 unfinished)
Ignored 164 untranslated source text(s)
Processing: DataPlotly/i18n/DataPlotly_it.ts
Updating 'DataPlotly/i18n/DataPlotly_it.qm'...
Generated 164 translation(s) (164 finished and 0 unfinished)
Processing: DataPlotly/i18n/DataPlotly_nl.ts
Updating 'DataPlotly/i18n/DataPlotly_nl.qm'...
Generated 114 translation(s) (114 finished and 0 unfinished)
Ignored 50 untranslated source text(s)
Processing: DataPlotly/i18n/DataPlotly_sv.ts
Updating 'DataPlotly/i18n/DataPlotly_sv.qm'...
Generated 115 translation(s) (115 finished and 0 unfinished)
Ignored 49 untranslated source text(s)
Processing: DataPlotly/i18n/DataPlotly_fr.ts
Updating 'DataPlotly/i18n/DataPlotly_fr.qm'...
Generated 122 translation(s) (122 finished and 0 unfinished)
Ignored 42 untranslated source text(s)
Processing: DataPlotly/i18n/DataPlotly_es.ts
Updating 'DataPlotly/i18n/DataPlotly_es.qm'...
Generated 115 translation(s) (115 finished and 0 unfinished)
Ignored 49 untranslated source text(s)
Processing: DataPlotly/i18n/DataPlotly_af.ts
Updating 'DataPlotly/i18n/DataPlotly_af.qm'...
Generated 1 translation(s) (1 finished and 0 unfinished)
Ignored 163 untranslated source text(s)
----------------------
Regression Test Suite
----------------------
Application path not initialized
qt.svg: Cannot open file ':/images/themes/default/mIconTimerPause.svg', because: No such file or directory
qt.svg: Cannot open file ':/images/themes/default/mIconTimerPause.svg', because: No such file or directory
#11 Test retrieving settings from the dialog ... ok
#12 Test saving/restoring dialog state in project ... qt.svg: Cannot open file ':/images/themes/default/mIconTimerPause.svg', because: No such file or directory
qt.svg: Cannot open file ':/images/themes/default/mIconTimerPause.svg', because: No such file or directory
ok
#17 Test setting dialog to a newly constructed settings object ... ok
#18 Test setting and retrieving settings results in identical results ... ok
#19 Test setting and retrieving settings results in identical results -- this secondary test allows for ... ok
#3 Tests get_icon ... ok
#4 Tests get_icon svg path ... ok
#5 Test that the plugin __init__ will validate on plugins.qgis.org. ... ok
#20 Test that factory proactively updates when a layer changes ... ok
#21 Test data defined color ... ok
#22 Test data defined stroke color ... ok
#23 Test data defined marker sizes ... ok
#24 Test data defined stroke color ... ok
#25 Test data defined stroke width ... ok
#26 Test handling of dates ... ok
#27 Test that correct expression context is used when evaluating expressions ... ERROR
#28 Test that filters are correctly applied ... ERROR
#29 Test value collection for selected features ... ERROR
#30 Test that factory proactively updates when a selection changes, when desired ... ok
#31 Test value collection ... ERROR
#32 Test filtering to visible features only ... /home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/test/test_plot_factory.py:355: DeprecationWarning:
QgsCoordinateReferenceSystem constructor is deprecated
/home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/test/test_plot_factory.py:369: DeprecationWarning:
QgsCoordinateReferenceSystem constructor is deprecated
/home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/test/test_plot_factory.py:377: DeprecationWarning:
QgsCoordinateReferenceSystem constructor is deprecated
ok
#6 Test settings constructor ... ok
#33 Test reading and writing configuration to files ... ok
#13 Test reading and writing to project document ... ok
#14 Test reading and writing to project, signals based ... ok
#15 Test reading and writing plot settings from XML ... ok
#7 Test that QGIS properly parses a wkt string. ... FAIL
#8 QGIS environment has the expected providers ... ok
#9 Test we can load resources. ... ok
#10 Test that translations work. ... ok
======================================================================
ERROR: Test that correct expression context is used when evaluating expressions
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/test/test_plot_factory.py", line 153, in test_expression_context
self.assertEqual(factory.settings.hover_label_text, [])
AttributeError: 'PlotSettings' object has no attribute 'hover_label_text'
======================================================================
ERROR: Test that filters are correctly applied
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/test/test_plot_factory.py", line 197, in test_filter
self.assertEqual(factory.settings.hover_label_text, [])
AttributeError: 'PlotSettings' object has no attribute 'hover_label_text'
======================================================================
ERROR: Test value collection for selected features
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/test/test_plot_factory.py", line 242, in test_selected_feature_values
self.assertEqual(factory.settings.hover_label_text, [])
AttributeError: 'PlotSettings' object has no attribute 'hover_label_text'
======================================================================
ERROR: Test value collection
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/test/test_plot_factory.py", line 68, in test_values
self.assertEqual(factory.settings.hover_label_text, [])
AttributeError: 'PlotSettings' object has no attribute 'hover_label_text'
======================================================================
FAIL: Test that QGIS properly parses a wkt string.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/test/test_qgis_environment.py", line 56, in test_projection
self.assertEqual(auth_id, expected_auth_id)
AssertionError: 'OGC:CRS84' != 'EPSG:4326'
- OGC:CRS84
+ EPSG:4326
DataPlotly/data_plotly_dialog.py NoSource: No source for code: '/home/matteo/lavori/faunalia/faunalia_git/DataPlotly/DataPlotly/data_plotly_dialog.py'.
Aborting report output, consider using -i.
Name Stmts Miss Cover Missing
------------------------------------------------------------------------------
DataPlotly/__init__.py 4 1 75% 35
DataPlotly/core/__init__.py 0 0 100%
DataPlotly/core/plot_factory.py 314 68 78% 55, 98, 189-190, 192-203, 220, 229, 233, 237, 239, 243, 247-249, 251-253, 256, 258, 265, 647, 654-657, 692-723, 747-782
DataPlotly/core/plot_settings.py 98 2 98% 228, 232
DataPlotly/core/plot_types/__init__.py 11 0 100%
DataPlotly/core/plot_types/bar_plot.py 30 9 70% 39-46, 71-75
DataPlotly/core/plot_types/box.py 23 6 74% 38-45
DataPlotly/core/plot_types/contour.py 18 1 94% 36
DataPlotly/core/plot_types/histogram.py 24 5 79% 36, 60-65
DataPlotly/core/plot_types/histogram2d.py 18 1 94% 36
DataPlotly/core/plot_types/pie.py 32 13 59% 36, 44-57
DataPlotly/core/plot_types/plot_type.py 46 6 87% 25, 32, 39, 46, 56-58
DataPlotly/core/plot_types/polar.py 23 4 83% 36, 60-64
DataPlotly/core/plot_types/scatter.py 23 0 100%
DataPlotly/core/plot_types/ternary.py 42 23 45% 38-58, 88-130
DataPlotly/core/plot_types/violin.py 23 6 74% 37-44
DataPlotly/data_plotly.py 63 44 30% 56-85, 100, 105-132, 136, 140-148, 154-155
DataPlotly/gui/__init__.py 0 0 100%
DataPlotly/gui/dock.py 13 8 38% 23-32
DataPlotly/gui/gui_utils.py 22 1 95% 62
DataPlotly/gui/layout_item_gui.py 91 70 23% 32-47, 53-82, 88-92, 98-103, 109-110, 116-117, 123-124, 127-148, 151-154, 163, 166, 169
DataPlotly/gui/plot_settings_widget.py 643 217 66% 97, 144, 289-296, 313-319, 325-332, 345-346, 354, 364-365, 383-403, 430, 449-494, 513-514, 520-521, 527, 535, 715-720, 862-865, 888-895, 913, 1100-1116, 1122-1124, 1130-1133, 1139-1140, 1151-1193, 1197-1200, 1208, 1210-1214, 1222-1230, 1238-1242, 1244-1248, 1255-1267, 1269-1270, 1281-1285, 1288-1289, 1333-1372, 1384-1385, 1397, 1400, 1406-1413, 1419-1424
DataPlotly/layouts/plot_layout_item.py 131 98 25% 42, 45, 51-75, 78, 81, 84-90, 96-104, 107-117, 123-125, 128-139, 142-155, 158-162, 165-169, 172-181, 185-189, 192-194, 197-199, 202-208, 214, 217
DataPlotly/processing/dataplotly_algorithms.py 111 77 31% 75-76, 82-84, 88-157, 166, 170, 173, 176, 179, 187-288
DataPlotly/processing/dataplotly_provider.py 26 11 58% 32-33, 39-40, 48, 53, 56, 59, 62, 65, 81
DataPlotly/test/__init__.py 1 0 100%
DataPlotly/test/qgis_interface.py 74 18 76% 109, 115, 119, 123, 127, 141, 152, 157-159, 167, 175, 183, 194, 205, 209, 218, 226
DataPlotly/test/test_data_plotly_dialog.py 208 3 99% 350-352
DataPlotly/test/test_guiutils.py 21 3 86% 47-49
DataPlotly/test/test_init.py 29 1 97% 65
DataPlotly/test/test_plot_factory.py 447 86 81% 71-128, 155-170, 199-214, 244-252, 689-691
DataPlotly/test/test_plot_settings.py 195 3 98% 347-349
DataPlotly/test/test_qgis_environment.py 29 1 97% 60
DataPlotly/test/test_resources.py 19 3 84% 39-41
DataPlotly/test/test_translations.py 31 4 87% 34, 53-55
DataPlotly/test/utilities.py 54 7 87% 35-36, 82-86
DataPlotly/test_suite.py 54 54 0% 2-91
DataPlotly/utils.py 9 7 22% 37-52
plugin_upload.py 57 57 0% 3-107
------------------------------------------------------------------------------
TOTAL 3057 918 70%
----------------------------------------------------------------------
Ran 30 tests in 11.856s
FAILED (errors=4, failures=1)
----------------------
If you get a 'no module named qgis.core error, try sourcing
the helper script we have provided first then run make test.
e.g. source run-env-linux.sh <path to qgis install>; make test
----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment