Commit graph

8856 commits

Author SHA1 Message Date
Ghostkeeper
393ee7838a
Add tests for setQualityById
One for when the ID exists, and one for when it doesn't.

Contributes to issue CURA-3497.
2017-03-24 17:48:27 +01:00
Ghostkeeper
eb7035db45
Add tests for setMaterialById
One for when the ID exists, and one for when it doesn't.

Contributes to issue CURA-3497.
2017-03-24 17:46:59 +01:00
Ghostkeeper
e4952ac8c5
Add tests for setDefinitionById
One for when the ID exists, and one for when it doesn't.

Contributes to issue CURA-3497.
2017-03-24 17:44:22 +01:00
Ghostkeeper
78e78ac147
Add test for settings behaving like a stack
The stack order is very fixed here. Is that bad?

Contributes to issue CURA-3497.
2017-03-24 17:40:41 +01:00
Ghostkeeper
2936b9bf24
Fail deserialize test if missing container doesn't raise an exception
If it raised an exception, we were checking whether it was the proper exception. But if it wasn't raising an exception we weren't checking anything. That's fixed now (and the header of the function is improved a bit too).

Contributes to issue CURA-3497.
2017-03-24 17:37:23 +01:00
Ghostkeeper
7913ff9bf2
Add test for deserializing with a missing container
A container is missing in the registry, so it should raise an exception.

Contributes to issue CURA-3497.
2017-03-24 17:35:31 +01:00
Ghostkeeper
69c53dcd73
Add test for constraining container types to certain slots
Only the definition slot must hold a definition container. All the rest must hold an instance container. This fails currently because the properties don't even exist.

Contributes to issue CURA-3497.
2017-03-24 17:32:33 +01:00
Ghostkeeper
e3932cb21c
Document deserialize test cases
Contributes to issue CURA-3497.
2017-03-24 17:27:46 +01:00
Ghostkeeper
ccb9c07909
Align parameters of material deserialising test
For readability.

Contributes to issue CURA-3497.
2017-03-24 17:24:35 +01:00
Ghostkeeper
e09f41e485
Add tests for deserialising extruders with definitions
All extruders have definitions, but this one specifically tests whether the ID is correct.

Contributes to issue CURA-3497.
2017-03-24 17:23:56 +01:00
Ghostkeeper
df2ae12ca9
Add tests for deserialising extruders with variants
Contributes to issue CURA-3497.
2017-03-24 17:21:47 +01:00
Ghostkeeper
bbd0ca7b9f
Add tests for deserialising extruders with material
Contributes to issue CURA-3497.
2017-03-24 17:17:41 +01:00
Ghostkeeper
9cb7c30fcb
Add tests for deserialising extruders with quality
Only the greatest extruders with actual quality are deserialised...

Contributes to issue CURA-3497.
2017-03-24 17:13:32 +01:00
Ghostkeeper
71a946d1b9
Add tests for deserialising extruders with quality changes
Contributes to issue CURA-3497.
2017-03-24 17:08:34 +01:00
Ghostkeeper
91814a827b
Line up parameters of test cases
Better oversight.

Contributes to issue CURA-3497.
2017-03-24 17:05:06 +01:00
Ghostkeeper
73326ae53d
Extruders don't have definition changes
So remove them from our test extruder stacks.

Contributes to issue CURA-3497.
2017-03-24 17:03:29 +01:00
Ghostkeeper
dea86ca535
Add tests for deserialising a stack with user changes
Code is mostly copied over from the global stack, which should work in a similar way.

Contributes to issue CURA-3497.
2017-03-24 16:57:48 +01:00
Jaime van Kessel
f04d1efb8d Removed file progress from removable output device, as writefile job now handles that itself 2017-03-24 16:32:39 +01:00
Ghostkeeper
e881465050
Add delimiter between global stuff and test cases
Helps provide some oversight since this module is about to explode in size.

Contributes to issue CURA-3497.
2017-03-24 16:31:57 +01:00
Ghostkeeper
14ac41e58f
Add tests for setQualityChangesById
One for when the ID exists, one for when it doesn't exist.

Contributes to issue CURA-3497.
2017-03-24 16:24:27 +01:00
Ghostkeeper
498956a190
Add tests for setQualityById
One for when the ID exists, one for when it doesn't exist.

Contributes to issue CURA-3497.
2017-03-24 16:19:47 +01:00
Ghostkeeper
d9ba848dc8
Add tests for setMeterialById
One for when the ID exists, one for when it doesn't exist.

Contributes to issue CURA-3497.
2017-03-24 16:15:50 +01:00
Ghostkeeper
3e437074ae
Sort tests better
Alphabetically.

Contributes to issue CURA-3497.
2017-03-24 16:01:56 +01:00
Ghostkeeper
dbc4a90e10
Add tests for setDefinitionChangesById
One for when the ID exists, one for when it doesn't exist.

Contributes to issue CURA-3497.
2017-03-24 16:00:55 +01:00
Ghostkeeper
928181507d
Add tests for setDefinitionById
One for when the ID exists, one for when it doesn't exist.

Contributes to issue CURA-3497.
2017-03-24 15:58:32 +01:00
Ghostkeeper
f29d5e897c
Add tests for setVariantById
One for when the ID exists, one for when it doesn't exist.

Contributes to issue CURA-3497.
2017-03-24 15:55:01 +01:00
Ghostkeeper
72bbb8ec0c
Also test whether adding an extruder had any effect on the extruder list
Contributes to issue CURA-3497.
2017-03-24 15:46:29 +01:00
Ghostkeeper
55dd17cae7
Add tests for changing properties on specified containers
Other than just user, that is.

Contributes to issue CURA-3497.
2017-03-24 15:42:05 +01:00
Ghostkeeper
319fd929d8
Add test for setProperty to set properties on user changes
Contributes to issue CURA-3497.
2017-03-24 15:34:31 +01:00
Ghostkeeper
eeb84ac27b
Add tests for prohibited operations on extruder stacks
These operations are explicitly prohibited, so they should raise an exception.

Contributes to issue CURA-3497.
2017-03-24 15:11:25 +01:00
Ghostkeeper
3d7dbe2e3b
Expand constrainContainerTypes test with subclasses of container types
Subclasses should behave in the same way as their parents.

Contributes to issue CURA-3497.
2017-03-24 14:50:57 +01:00
Ghostkeeper
00c1c2dcf6
Add test to verify that you can't change types of containers
For instance, you shouldn't be able to put an instance container in the definition slot.

Contributes to issue CURA-3497.
2017-03-24 14:40:32 +01:00
Ghostkeeper
d1dc48d7e1
Add test to verify priority of resolve property
The resolve property should get priority over the value in the definition container, but not anywhere else.

Contributes to issue CURA-3497.
2017-03-24 14:27:30 +01:00
Ghostkeeper
f4673b340a
Document tests
Missing documentation here.

Contributes to issue CURA-3497.
2017-03-24 12:44:20 +01:00
Ghostkeeper
56082bdbdf
Add tests for prohibited operations
Four of these. It's probably too simple to test now, but who knows what could happen in the future.

Contributes to issue CURA-3497.
2017-03-24 12:42:35 +01:00
Ghostkeeper
f2b9f79fb3
Document test_addExtruder better
Contributes to issue CURA-3497.
2017-03-24 12:28:26 +01:00
Ghostkeeper
d40a67f2b0
Add test for addExtruder
This mainly tests if it is properly limited by the number of extruders setting.

Contributes to issue CURA-3497.
2017-03-24 12:27:39 +01:00
Ghostkeeper
86a1d3eb10
Add marker to indicate where the test cases start
Sorting also takes care of this, but it's still more clear this way.

Contributes to issue CURA-3497.
2017-03-24 12:01:23 +01:00
Ghostkeeper
4215ba3ce7
Add test for setting fall-through
This tests whether a setting still falls through properly to lower containers if it is not defined in a container.

Contributes to issue CURA-3497.
2017-03-24 11:59:19 +01:00
Jaime van Kessel
dafeab4e8a Merge branch 'feature_CURA-3495_open_menu' of github.com:Ultimaker/Cura 2017-03-24 11:52:26 +01:00
Jaime van Kessel
298fa52da5 Merge branch '2.5' of github.com:Ultimaker/Cura 2017-03-24 11:51:16 +01:00
fieldOfView
33f20710d9 Ups the limit of the maximum cost of a spool of filament
This is necessary for currencies such as Japanese Yen or South Korean Won, where prices can easily exceed 1000. This PR sets the limit to 100,000,000. If the price of a spool exceeds this amount, perhaps the user should consider moving to a more stable country.

Fixes https://github.com/Ultimaker/Cura/issues/1567
2017-03-24 11:23:40 +01:00
Jaime van Kessel
4b7b8600ec Shortened the logging of the auth key. Turned out it was extremely long 2017-03-24 11:22:57 +01:00
Jaime van Kessel
8d2e824205 Added even more logging 2017-03-24 11:17:59 +01:00
Jaime van Kessel
8572be99b9 Merge branch 'master' of github.com:Ultimaker/Cura 2017-03-24 11:05:21 +01:00
Jaime van Kessel
adab4a1110 Added "blurred" auth key logging.
The getSafeaAuthKey prints a key of the same length, but only the last 5 chars are real. The rest is blurred out with *
THis is a bit like how most payment services hide your credit card number.
2017-03-24 11:04:08 +01:00
Ghostkeeper
7688ce6582
Merge branch 'master' of github.com:Ultimaker/Cura 2017-03-24 10:50:28 +01:00
Ghostkeeper
e76c3f72e7
Lower QtQuick requirement further to 2.2
2.2 is required for the modifications we make to the Button objects.
2017-03-24 10:49:46 +01:00
Ghostkeeper
0f0b8cd5dd
Lower QtQuick requirement further to 2.2
2.2 is required for the modifications we make to the Button objects.
2017-03-24 10:47:47 +01:00
Lipu Fei
578f72c91e Use "False" instead "false" in cfg files
CURA-3555
2017-03-24 10:44:44 +01:00