491 Commits

Author SHA1 Message Date
Jaime van Kessel
9e68bcb7a0
Merge branch 'feature_objectlist_improvements' of https://github.com/fieldOfView/Cura 2020-04-28 15:40:08 +02:00
Ghostkeeper
f4f990708f
Remove old 'category' metadata
Most of it was incorrect and very inconsistent too. These are not used by our code any more.
2020-04-28 09:27:31 +02:00
fieldOfView
3e64ed155d Fix tests for updated ObjectsModel
Three roles were added to the ObjectsModel: "extruder_number", "per_object_settings_count" and "mesh_type"
2020-04-13 09:18:41 +02:00
Jaime van Kessel
2e9dca71ce
Remove a number of unused imports 2020-04-10 13:58:10 +02:00
Jaime van Kessel
fe27da5e8a
Remove a number of unused variables 2020-04-10 13:46:19 +02:00
Jaime van Kessel
3cc7382c12
Remove some unused code from TestCuraStackBuilder 2020-02-28 14:29:26 +01:00
Ghostkeeper
a8ccec709f
Add test for spaces in definition IDs
Contributes to issue CURA-7201.
2020-02-07 13:55:24 +01:00
Jaime van Kessel
eb1ae9f18d
Fix tests 2020-01-03 15:12:14 +01:00
Jaime van Kessel
9de2b39d38
Fix the failing tests
CURA-6255
2020-01-02 11:13:48 +01:00
Jaime van Kessel
0862fd493e
Fix some tests not cleaning up correctly after themselves
The PrintInformation test wasn't cleaning up after itself correclty. This
left some stuff behind that the other tests were using. Since this is bad (as at that point
tests can influence other tests), i've fixed that
2019-12-24 16:20:09 +01:00
Jaime van Kessel
24a5cbfacb
Make test a bit more readable 2019-12-20 15:21:59 +01:00
Nino van Hooff
dd8993e88c revert 0 buildvolume edgedisallowedsize for one_at_a_time
Turns out that the artificial disallowed area around the inside of the
build volume was necessary to take the brim into account when deciding
whether a model was outside the buildvolume.
The issue for which I removed this in the first place seems not to be
an issue anymore due to other commits

Reverts and e5fb9fb8 and e5c9bca
CURA-6522
2019-12-06 12:17:21 +01:00
Nino van Hooff
4ad954f23e Fix TestCuraSceneNode
CURA-6522
2019-12-06 12:00:40 +01:00
Jaime van Kessel
50d72692d8
Merge branch 'master' of github.com:Ultimaker/Cura into CURA-6522_one_at_a_time_overlapping_build_area 2019-11-20 16:48:00 +01:00
Lipu Fei
d70a6e81b1 Merge 4.4 2019-11-12 14:39:30 +01:00
Lipu Fei
77c194464e Fix tests 2019-11-12 14:33:54 +01:00
Jaime van Kessel
3da53a3a89
Merge branch 'CURA-6856_signed_plugins_and_packages' of github.com:Ultimaker/Cura 2019-11-12 10:48:43 +01:00
Jaime van Kessel
9940bc8551
Merge branch 'master' of github.com:Ultimaker/Cura 2019-11-08 13:38:58 +01:00
Jaime van Kessel
00078fd659
Remove a bunch of unused imports 2019-11-08 13:38:42 +01:00
Lipu Fei
34c080c4bd Add _trustHook() to MockContainer
CURA-6856
2019-11-07 09:55:44 +01:00
Lipu Fei
d346dd4090 Fix TestDefinitionContainer 2019-11-06 15:43:43 +01:00
Ghostkeeper
c7c6389897
Report on all faulty keys at once instead of crashing on first
This makes it a lot easier to communicate back to users what is going wrong.
2019-11-04 11:50:57 +01:00
Ghostkeeper
1f4c863683
Also assert that the extruder_nr setting matches 2019-11-01 15:08:09 +01:00
Ghostkeeper
069dc6e65d
Add test to see if definition's extruder number matches up
...with its machine definition's metadata.
2019-11-01 14:52:41 +01:00
Ghostkeeper
6e6c510dcd
Test extruders for correctness but not for validity
The validity can't be tested using the built-in validator since that one checks if there are no settings that 'override' non-existing settings. And some of the settings overridden in an extruder are not in the inheritance stack since fdmextruder doesn't inherit from fdmprinter.

We'll check though that all settings that are overridden don't override a default_value while there is a value, and whether they don't have IDs.
2019-11-01 14:34:07 +01:00
Ghostkeeper
174b326f57
Also test validity and correctness of extruder definitions
This makes a few things slightly simpler as well since it now parameterises the tests with the entire path of the definition file so we don't have to reconstruct that in every test.
2019-11-01 14:18:35 +01:00
Ghostkeeper
852da51f65
Fix tests for exact matching on preferred material
I don't know why the CI system was only complaining about it several commits later. Could be troublesome.

Fixes a bug introduced by 1284d9fe8d726e46b556caa8f2f390dc7d65220c.
2019-11-01 13:56:29 +01:00
Nino van Hooff
e5c9bca3d0 Fix TestBuildVolume
CURA-6522
2019-11-01 09:57:51 +01:00
ninovanhooff
b9b086a8c0
Merge pull request #6542 from Ultimaker/CURA-6793_performance
Performance improvements
2019-10-23 16:50:04 +02:00
ninovanhooff
9beea85482
Merge pull request #6566 from Ultimaker/CURA-6858_increase_sdk_ver_7_0
Change SDK version to 7.0.0
2019-10-23 11:54:49 +02:00
Ghostkeeper
94eb76a844
Merge branch 'master' into CURA-6793_performance
Conflicts:
	cura/Machines/MaterialManager.py -> File was deleted in Master but I changed things for the lazy loading.
	cura/Machines/Models/BaseMaterialsModel.py -> I clarified documentation on a line above a place where a timer was added in between.

Contributes to issue CURA-6793.
2019-10-23 09:58:08 +02:00
Lipu Fei
f2c66f8d3a Fix TestVariantNode
CURA-6921
2019-10-22 15:31:17 +02:00
Lipu Fei
38ee4bf208 Remove deprecated functions in MachineManager
CURA-6858
2019-10-22 14:11:40 +02:00
Ghostkeeper
985aac9e60
Assert that there is no ID metadata entry in definition containers 2019-10-22 11:01:16 +02:00
Ghostkeeper
51c3acc654
Document helper functions 2019-10-22 09:56:50 +02:00
Ghostkeeper
15ea29924a
Sort definition files before testing them
When going through the list of tests for many printers to fix them, it's then easier to go through the failed list. They will appear in the same order as in my IDE. Just a bit of an ease of life thing without any real cost.

Done during Turbo Testing & Tooling.
2019-10-18 17:02:40 +02:00
Ghostkeeper
1d7ad38db2
Also name which setting has the dysfunctional override
So that it's easier to remove it.

Done during Turbo Testing & Tooling.
2019-10-18 17:00:47 +02:00
Ghostkeeper
76b5f9d37b
Fix testing if JSON elements are mappings
Turns out that the JSON objects extend from dict, so this works.
Also turns out that strings have a __getitem__. Who knew?

Done during Turbo Testing & Tooling.
2019-10-18 16:57:57 +02:00
Ghostkeeper
9316df72b3
Add test for overriding default_value while there is a value
This should not be done anywhere since the default_value won't have any effect then. We disregard CuraEngine's command line method here but that's infeasible with those profiles anyway.

Done during Turbo Testing & Tooling.
2019-10-18 16:45:15 +02:00
Ghostkeeper
c12817170c
Merge branch 'master' into CURA-6793_performance 2019-10-16 15:47:41 +02:00
Ghostkeeper
8179dfc412
Make cache of machines a protected field
We don't want to use it outside of the mapping. This mapping should be transparent.
We are still using it from our tests though but that's fine. Tests are allowed to touch private fields.

Contributes to issue CURA-6793.
2019-10-16 15:04:07 +02:00
Ghostkeeper
5624f0a8ae
Fix tests with new lazy-loading technique
The new lazy loading requests different functions from the registry so we need to mock that out.
Also fix the manual insertion of things into the lazy-loaded mapping.

Contributes to issue CURA-6793.
2019-10-16 14:59:46 +02:00
Ghostkeeper
9b836d95d9
Remove quality, variant and material manager
We don't use them any more and they are deprecated.

Removing them removes a lot of maintenance.

Contributes to issue CURA-6801.
2019-10-16 13:00:38 +02:00
Lipu Fei
84080b675b Fix tests 2019-10-15 08:29:53 +02:00
Ghostkeeper
b5c6a0a1e3
Merge branch 'master' into CURA-6793_performance 2019-10-14 17:17:10 +02:00
Ghostkeeper
22d874d932
Code style
Found during work on CURA-6973.
2019-10-10 16:02:47 +02:00
Lipu Fei
fb368a4788 Remove MachineManager.activeVariantNames
CURA-6865
2019-10-08 15:16:27 +02:00
Lipu Fei
c42feae11c Make intents work on quality management page
CURA-6706
2019-10-07 09:22:47 +02:00
Ghostkeeper
862504f603
Add test for preferring a material diameter over the preferred from metadata
Done during Turbo Testing and Tooling.
2019-10-04 17:32:42 +02:00
Ghostkeeper
9b6443c2d3
Add test for preferred material diameter mismatch
Done during Turbo Testing and Tooling.
2019-10-04 17:28:27 +02:00