Remco Burema
7fb9642e45
Replace deprecated .getContainer() calls with .container
...
part of CURA-6600
2019-08-15 13:40:08 +02:00
Ghostkeeper
6a5f425468
Fix running tests via CMake
...
The Settings folder conflicts with the same folder in Uranium, so it couldn't find MockContainer from the Uranium version.
Contributes to issue CURA-6600.
2019-08-13 16:20:21 +02:00
Ghostkeeper
6a8e1557c3
Merge branch 'feature_intent' into feature_intent_container_tree
...
Conflicts:
.gitlab-ci.yml
cura/Machines/MaterialManager.py
cura/Machines/VariantManager.py
cura/Settings/ContainerManager.py
cura/Settings/MachineManager.py
tests/TestMachineManager.py
2019-08-13 14:59:05 +02:00
Ghostkeeper
20201c65e6
Merge branch 'master' into feature_intent
...
Conflicts:
resources/bundled_packages/cura.json -> 4.1 to 4.2 upgrade package added simultaneously
tests/TestMachineManager.py -> Due to changes in conftest.py
tests/conftest.py -> Simultaneously expanding the magic mocks to have some correct properties
2019-08-13 14:43:28 +02:00
Jaime van Kessel
e08feb1099
Fix final set of broken tests
...
CURA-6600
2019-08-12 16:32:59 +02:00
Jaime van Kessel
e18820b846
Fix tests for ContainerManager
...
CURA-6600
2019-08-12 15:37:19 +02:00
Jaime van Kessel
1103df0cc9
Add test for _getIOPlugins
2019-08-02 14:38:39 +02:00
Jaime van Kessel
c7ab1a9f5d
Add tests for _isMetadataValid
2019-08-02 14:30:37 +02:00
Jaime van Kessel
d69c4d0979
Fix tests
...
CURA-6543
2019-06-03 16:27:39 +02:00
Jaime van Kessel
92dc99a4d5
Add a number of tests for settingInheritanceManager
2019-05-31 14:54:34 +02:00
Jaime van Kessel
14d5fa5529
Add a bunch of tests for importing profiles
2019-05-31 13:59:54 +02:00
Jaime van Kessel
1d4fe56a21
Add tests for _findProfileWriter
2019-05-31 13:18:14 +02:00
Jaime van Kessel
43360aace0
Add tests for ExportQualityProfile
2019-05-31 13:07:03 +02:00
Jaime van Kessel
31f53dfc3c
Add tests for SettingOverrideDecorator
...
CURA-6539
2019-05-28 11:22:13 +02:00
Jaime van Kessel
3748b256ce
Add a few more simple tests for extruder stack
2019-05-24 17:28:42 +02:00
Jaime van Kessel
879dc90246
Add test for creating extruder stack
2019-05-24 16:42:20 +02:00
Jaime van Kessel
76163636a1
Fix the simple create machine test
2019-05-24 16:36:39 +02:00
Jaime van Kessel
c1818bcfbe
Add test for CuraStackBuilder
2019-05-20 08:57:58 +02:00
Ghostkeeper
65bc29cd4c
Give slightly more information when definition is invalid
...
Because it now fails at the assertion inside assertIsDefinitionValid, it'll show the information at that point in the stack, rather than showing that the entire function returned False which could be a lot of things (if you don't actually go reading the function because then you discovered that it could only be one thing).
2019-05-14 09:08:50 +02:00
Jaime van Kessel
d0e61f23f1
Add test for exporting container by means of the containerManager
2019-03-15 17:02:06 +01:00
Jaime van Kessel
fd237a9473
Add test that checks the validity of the namefilters
2019-03-15 16:34:17 +01:00
Jaime van Kessel
7bb35cdbf7
Add test cases for the ContainerManager
2019-03-15 16:17:28 +01:00
Ghostkeeper
2b8a2d0c20
Reduce print output during happy path of automated tests
...
It should really just not print anything except what pytest prints, so you can easily see what tests have failed and what have not.
2019-03-11 11:10:09 +01:00
Jaime van Kessel
0616601250
Merge branch '4.0' of github.com:Ultimaker/Cura
2019-03-11 10:39:23 +01:00
Ghostkeeper
e53eb70cad
Add tests for validating metadata before loading
...
Contributes to issue CURA-6270.
2019-03-08 14:07:10 +01:00
Jaime van Kessel
efeba48ffb
Move initializeSettingDefinitions and setting functions to their own function
...
This means we don't have to instantiate CuraApplication in the tests anymore
2019-02-18 09:45:30 +01:00
Jaime van Kessel
338f9c0052
Add check for platform mesh & texture
...
It simply checks if the file exists
2019-02-15 14:42:50 +01:00
Jaime van Kessel
c3b447cd89
Also check if the variants are correct
2019-02-15 14:20:13 +01:00
Jaime van Kessel
c0d75b38b7
Added test to check if a key in the profile is defined in the definition
2019-02-15 14:06:46 +01:00
Jaime van Kessel
1e280c2869
Check if every quality is matched to an existing definition
2019-02-15 13:18:18 +01:00
Jaime van Kessel
98704e72a2
Added validation test for all qualities shipped with Cura
...
This checks if the qualities are atleast formatted righ.
2019-02-15 13:09:42 +01:00
Jaime van Kessel
face8d4799
Moved logic of isDefinitionvalid to it's own function
...
This should make it easier in the future to add checks for the extruders as well
2019-02-13 14:11:46 +01:00
Jaime van Kessel
9b76124d11
Ensured that the validateDefinitionContainer checks a single definition per test
2019-02-13 14:02:38 +01:00
Jaime van Kessel
f35ad5cf83
Merge branch 'CURA-5977_test_definition_container' of github.com:Ultimaker/Cura
2019-02-13 14:02:09 +01:00
Jaime van Kessel
afce462cfa
Add test for creation of unique name
2019-02-08 13:35:50 +01:00
Aleksei S
2b45262a85
Added test for definition container
...
CURA-5977
2018-11-23 17:01:05 +01:00
Jaime van Kessel
a58c63bbb8
Minor fixes for visibility preset tests
...
CURA-5734
2018-10-17 10:51:47 +02:00
Jaime van Kessel
d086e6fa86
Fix review comments
...
CURA-5734
2018-10-17 10:47:34 +02:00
Ghostkeeper
b37252f124
Minor code style fixes
...
Contributes to issue CURA-5734.
2018-10-10 14:18:37 +02:00
Jaime van Kessel
4def636fc9
Minor codecleanup (Typing & removing unused imports)
...
CURA-5734
2018-10-01 14:54:08 +02:00
Jaime van Kessel
edb5de9954
Added unit test for settingvisibility presets
...
CURA-5734
2018-10-01 14:50:53 +02:00
Jaime van Kessel
f585afe77b
Fix spacing
2018-09-27 17:31:45 +02:00
Lipu Fei
c20274e356
Move constant instance containers to a separate file
...
This way we separate the class/type definitions and the actual
constants.
2018-08-15 11:04:09 +02:00
Diego Prado Gesto
77c5a94db2
Fix some test in the CuraContainerRegistry.
...
Delete a test that needs a ContainerProvider. We need to discuss if we
want to add it back, depending if we are still keeping the providers.
Contributes to CURA-5628.
2018-08-14 17:14:30 +02:00
Diego Prado Gesto
b85950b128
Fix tests in the ExtruderStack.
...
Contributes to CURA-5628.
2018-08-14 15:40:11 +02:00
Diego Prado Gesto
1364370ede
Fix global stack tests.
...
Contributes to CURA-5628.
2018-08-14 13:49:37 +02:00
Diego Prado Gesto
db7f1242cd
Fix some unit tests.
...
Add fixtures to the conftest file and clean-up the code a bit.
Contributes to CURA-5628
2018-08-14 10:41:38 +02:00
Lipu Fei
af02dc2758
Only use setMetaDataEntry()
2018-07-11 11:14:57 +02:00
Ghostkeeper
e38228ac24
Remove unused target_container parameter
...
It's not compatible with ContainerInterface anyway.
Contributes to issue CURA-5330.
2018-06-01 14:53:54 +02:00
Lipu Fei
dc52e939e9
Fix unit tests for adding CuraContainerStacks
...
CURA-5281
Because of the definition_changes fix, CuraContainerStack.deserialize()
may create and add extra containers, so the unit tests need to be adjusted.
2018-04-25 17:55:20 +02:00