Commit graph

31 commits

Author SHA1 Message Date
Ghostkeeper
557746a832
Partial fix for intent manager not finding correct profile in test
Only in test.
2019-09-23 15:17:15 +02:00
Ghostkeeper
f1299589c9
Remove debug prints
Contributes to issue CURA-6600.
2019-09-12 15:49:27 +02:00
Lipu Fei
3f3aac7ce5
Merge pull request #6289 from Ultimaker/feature_intent_interface
Feature intent interface
2019-09-09 16:53:37 +02:00
Ghostkeeper
5debdd4cf6
Fix getting extruder list everywhere
Didn't test this beyond my own automated test, it seems.

Contributes to issue CURA-6600.
2019-09-09 16:47:29 +02:00
Ghostkeeper
178887d8e5
Add test for getting metadata from machine node
Contributes to issue CURA-6600.
2019-09-06 17:40:31 +02:00
Ghostkeeper
5106d3b7c1
Test if we actually return the result of the call to getQuality[Changes]Groups
Contributes to issue CURA-6600.
2019-09-06 17:26:38 +02:00
Ghostkeeper
7f192ce36f
Add test for getting current quality changes groups
Similar to getting the current quality groups.

Contributes to issue CURA-6600.
2019-09-06 17:25:07 +02:00
Ghostkeeper
ea5530c507
Add test for getting quality changes groups without global stack
Shouldn't crash. Instead it should give no quality changes groups.

Contributes to issue CURA-6600.
2019-09-06 17:21:56 +02:00
Ghostkeeper
4bdc819f12
Fix nondetermistic result with dictionary values list
Because global_stack.extruders.values can be returned in any order, the configurations matching with the lists doesn't always give a result.
It happened to work on my computer with the test, but there is no guarantee of that.

This is probably also going wrong in other places. I don't think we should use the .extruders property anywhere really!

Contributes to issue CURA-6600.
2019-09-06 17:15:45 +02:00
Ghostkeeper
d618f2df71
Add test for getCurrentQualityGroups
The test succeeded but in writing it I discovered a bug. I'll fix that soon.

Contributes to issue CURA-6600.
2019-09-06 17:06:32 +02:00
Ghostkeeper
10f37c98ff
Add test for getCurrentQualityGroups if there is no current printer
Contributes to issue CURA-6600.
2019-09-02 13:35:17 +02:00
Jaime van Kessel
001c2ec753 Fix test 2019-08-29 17:09:31 +02:00
Jaime van Kessel
d9e94f5019 Fix tests 2019-08-29 17:07:36 +02:00
Jaime van Kessel
f6ccd40f9f Add tests for metadatachanged
CURA-6600
2019-08-21 15:18:57 +02:00
Jaime van Kessel
25ea1dd66a Add tests for the _onRemoved handler
CURA-6600
2019-08-21 14:45:59 +02:00
Jaime van Kessel
a6be5ac52d Fix materialNode tests
CURA-6600
2019-08-21 12:50:40 +02:00
Ghostkeeper
80baeb9873
Remove _added functions for nodes that can't be added during runtime
Among the machines, variants, materials, qualities and intents, only machines and materials can ever be added during runtime. For the rest, we don't need to listen to these signals.

Contributes to issue CURA-6600.
2019-08-16 16:28:42 +02:00
Jaime van Kessel
c218b7ac56 Fix the tests for materialnode
CURA-6600
2019-08-13 16:22:33 +02:00
Jaime van Kessel
fc3461d865 Fix the machine node test
CURA-6600
2019-08-12 15:11:59 +02:00
Jaime van Kessel
e2596e64ef Add tests for quality node 2019-08-08 14:11:00 +02:00
Jaime van Kessel
c26d113002 Add test for the MaterialNode
CURA-6600
2019-08-08 13:52:45 +02:00
Jaime van Kessel
a8fbb80b09 Add tests for the updating of MaterialNodes in the variant node
CURA-6600
2019-08-08 10:46:24 +02:00
Jaime van Kessel
476c7b683d Extend variant node test to also test the material added case
CURA-6600
2019-08-07 17:23:12 +02:00
Jaime van Kessel
2683c31975 Add initial tests for variantNode
CURA-6600
2019-08-07 17:04:39 +02:00
Jaime van Kessel
fa077038fc Add tests for the MachineNode 2019-08-07 16:17:46 +02:00
Jaime van Kessel
a241425aaf Add test for ContainerTree
CURA-6600
2019-08-07 15:35:22 +02:00
Jaime van Kessel
54ffcc478c Add some tests for DiscoveredPrintersModel 2019-05-31 17:03:38 +02:00
Lipu Fei
5ab2f9784d Fix unit test
CURA-6483
2019-04-26 13:55:12 +02:00
Lipu Fei
56cec02d44 Fix tests 2019-04-18 07:40:10 +02:00
Lipu Fei
b28fdc2b0b Use camelcase for pyqtProperty names 2019-03-28 14:22:27 +01:00
Lipu Fei
4a171eebf6 Move models around again
- Move machine related models to cura.Machines.Models
 - Move printer device related models to cura.PrinterOutput.Models
 - Other UI/GUI related modules in cura.UI
2019-03-26 08:29:22 +01:00