ChrisTerBeke
08322d0a5e
Move all decorators in the scene subfolder
2018-01-03 15:09:19 +01:00
ChrisTerBeke
a5630e5c54
Move all arranging related code into a subfolder
2018-01-03 15:05:06 +01:00
Aleksei S
2c18127cc1
Tests: Removed python circular import dependency and added empty containers
...
CURA-4687
2017-12-15 09:43:02 +01:00
Ghostkeeper
dad99f5292
Merge branch 'master' into feature_local_container_server
...
Contributes to issue CURA-4243.
2017-11-29 13:06:08 +01:00
Ghostkeeper
fab85616c7
Remove test for upgrading from legacy stacks to modern stacks
...
This is because ContainerRegistry.saveAll has been removed. That function was only used by this test. I don't think it's worth keeping this unit test for the effort. It's only for code that's passed through in the version upgrade from 2.4 to 2.5 anyway.
Contributes to issue CURA-4243.
2017-11-27 11:23:24 +01:00
Ghostkeeper
ebe766a7c8
Set definition by their ID
...
The new function for setting the definition just adds the ID to the metadata.
Contributes to issue CURA-4243.
2017-11-24 16:45:09 +01:00
Lipu Fei
7d46eead60
Fix broken unit tests due to evaluation context
...
CURA-4498
2017-10-26 12:49:41 +02:00
Ghostkeeper
6c4c7fff4d
Use findContainersMetadata whenever possible
...
This ensures that we only load those containers that we actually need the data of.
Contributes to issue CURA-4243.
2017-10-20 15:09:45 +02:00
Jaime van Kessel
889753f958
Fix unit test
...
CURA-4360
2017-10-02 15:12:56 +02:00
Mark
9a193ad5c5
Changing AGPLv3 to LGPLv3
2017-09-28 13:00:43 +02:00
Ghostkeeper
c7c54f6d3a
Add test to ensure that UM3 and UM3E variants are kept the same
...
It's a bit chunky, but functional.
2017-08-04 00:50:42 +02:00
Ghostkeeper
3e278cbd0a
Add test for very large material diameters
...
Shouldn't matter with Python, but you never know.
Contributes to issue CURA-2822.
2017-06-30 08:47:49 +02:00
Ghostkeeper
adb93507c8
Set material_diameter setting in approximate material diameter test
...
Instead of the metadata entry, which was a previous implementation of the function. This is essentially just an update of the test.
Contributes to issue CURA-2822.
2017-06-30 08:43:04 +02:00
Ghostkeeper
fc96dfec4e
Expose approximateMaterialDiameter of the definition
...
This way we can request that from QML.
Contributes to issue CURA-2822.
2017-06-22 18:17:15 +02:00
Arjen Hiemstra
be08fab97c
Fix the addExtruder unit test
...
Extruders now need to provide a "position" entry.
Contributes to CURA-3738
2017-05-17 13:47:14 +02:00
Arjen Hiemstra
9686df285d
Merge branch 'master' of github.com:Ultimaker/Cura into transparent_limit_to_extruder
2017-05-17 10:26:48 +02:00
Lipu Fei
121ebd79cf
Fix circular import problem caused by moving SettingVersion into CuraApplication
...
CURA-3756
2017-05-16 14:55:34 +02:00
Arjen Hiemstra
c4e6336828
Merge branch 'transparent_limit_to_extruder' of github.com:ultimaker/Cura into transparent_limit_to_extruder
...
* 'transparent_limit_to_extruder' of github.com:ultimaker/Cura:
Removed unused imports
Fixed type hinting for Extruder stack
Fixed two remaining failing unit tests
Fixes unit fallthrough unit test
2017-05-16 13:41:13 +02:00
Jaime van Kessel
06dc1d070e
Fixed two remaining failing unit tests
...
CURA-3738
2017-05-15 11:46:22 +02:00
Jaime van Kessel
da63932a95
Fixes unit fallthrough unit test
...
CURA-3738
2017-05-15 11:36:02 +02:00
Ghostkeeper
1bac7c2b2a
Don't register registry at ContainerStack class any more
...
The fixture does this for us automatically now. It's not entirely neat since this is not cleaned up afterwards, but it does make sense to put it there in the fixture, logically.
Contributes to issue CURA-3427.
2017-05-12 16:32:55 +02:00
Ghostkeeper
def93f8dc9
Define fixture for DefinitionContainer instances
...
Removes a few lines from the tests, making them simpler. Not much though.
Contributes to issue CURA-3427.
2017-05-12 16:31:18 +02:00
Ghostkeeper
a2b0b1076a
Add test for when setting_version doesn't match its definition
...
Contributes to issue CURA-3427.
2017-05-12 16:28:31 +02:00
Ghostkeeper
2888189f57
Add test for when an instance container has no setting_version
...
The setting_version is interpreted as 0 then.
Contributes to issue CURA-3427.
2017-05-12 16:25:14 +02:00
Ghostkeeper
52ffac677f
Add test for happy path of filtering by setting_version
...
If the setting_version is correct, the container should get registered.
Contributes to issue CURA-3427.
2017-05-12 16:21:33 +02:00
Ghostkeeper
ab7b9913c7
Add test for registering global stacks
...
This test tests adding container stacks and seeing if they convert well.
Contributes to issue CURA-3427.
2017-05-12 16:11:51 +02:00
Ghostkeeper
e50b0884f0
Add test for registring containers
...
This test tests adding container stacks and seeing if they convert well.
Contributes to issue CURA-3427.
2017-05-12 15:59:38 +02:00
Jack Ha
209822d0fc
Fix unit test. Related to CURA-3757
2017-05-09 12:59:16 +02:00
Arjen Hiemstra
51b76acc6d
Fix unit test
...
CuraContainerRegistry::load now has a dependency on the ContainerStack
so we need to account for it in our mocks.
2017-05-04 15:57:47 +02:00
Arjen Hiemstra
fe112d5d81
Fix extruderstack test on CI
...
We do not need a complete CuraApplication just so registerExtruder
can work. Instead, we just mock away the extruder manager so the rest of
the test can proceed.
2017-05-04 13:06:34 +02:00
Jaime van Kessel
d7004d3547
Merge branch 'master' of github.com:Ultimaker/Cura into cura_containerstack
2017-05-02 11:42:16 +02:00
Jaime van Kessel
69c3baf87f
Fixed unit test
...
CURA-3497
2017-05-02 11:06:25 +02:00
Jaime van Kessel
c815077278
Fixed the upgraderFileRename test
...
CURA-3479
2017-05-01 17:28:55 +02:00
Jaime van Kessel
e6e442348b
Fixed one of the tests
...
The test failed due to it not creating the right application CURA-3497
2017-05-01 16:10:05 +02:00
Jack Ha
8a227c0269
Revert permissions
2017-04-25 11:19:37 +02:00
Jack Ha
74059a82a5
Added some smoketests. CURA-3297
2017-04-25 11:18:55 +02:00
Jaime van Kessel
740b5ebc80
Removed print statements from unit test
2017-04-13 11:29:09 +02:00
Jaime van Kessel
a02eacd8bc
Fixed unit test
2017-04-13 11:28:19 +02:00
Arjen Hiemstra
0c232c9462
ExtruderStack requires a next stack, so make sure it has that in tests
2017-04-12 12:06:02 +02:00
Ghostkeeper
70055d35c0
Remove superfluous mocking and fixtures
...
These are now no longer used by the tests.
Contributes to issue CURA-3497.
2017-04-12 10:00:45 +02:00
Ghostkeeper
eaf180c150
Let setProperty tests test only whether setProperty on container is called
...
This makes these tests more simple to mock and stuff and also removes all dependencies of these tests.
Contributes to issue CURA-3497.
2017-04-12 10:00:45 +02:00
Ghostkeeper
06797abafe
Change expected exception in test_set...ByIdDoesntExist
...
It should raise an InvalidContainerError rather than a KeyError.
Contributes to issue CURA-3497.
2017-04-12 10:00:45 +02:00
Ghostkeeper
0e82c84790
Let test_setVariantByIdExists use new container registry functionality
...
It sets the container it expects beforehand and tests for its ID.
Contributes to issue CURA-3497.
2017-04-12 10:00:45 +02:00
Ghostkeeper
4db7c6ae66
Let test_setQualityChangesByIdExists use new container registry functionality
...
It sets the container it expects beforehand and tests for its ID.
Contributes to issue CURA-3497.
2017-04-12 10:00:44 +02:00
Ghostkeeper
972e94386c
Let test_setQualityByIdExists use new container registry functionality
...
It sets the container it expects beforehand and tests for its ID.
Contributes to issue CURA-3497.
2017-04-12 10:00:44 +02:00
Ghostkeeper
27f053ad7b
Let test_setMaterialByIdExists use new container registry functionality
...
It sets the container it expects beforehand and tests for its ID.
Contributes to issue CURA-3497.
2017-04-12 10:00:44 +02:00
Ghostkeeper
361b58f49c
Let container_registry return a pre-set value for what containers it finds
...
This makes a lot of tests more simple, without requiring elaborate mocks, patches and fixtures.
Contributes to issue CURA-3497.
2017-04-12 10:00:44 +02:00
Ghostkeeper
479176bc6f
Remove superfluous mocking and fixtures
...
There, that's better.
Contributes to issue CURA-3497.
2017-04-12 10:00:44 +02:00
Ghostkeeper
09ab895feb
Only test whether setProperty calls setProperty on proper container
...
It sets up a mock container and records whether setProperty is called on that container. Whether that actually sets the property correctly is up to the instance container.
Contributes to issue CURA-3497.
2017-04-12 10:00:44 +02:00
Ghostkeeper
2161cf9f52
Remove superfluous output_value parameter
...
It's not used any more since we don't test the actual instance container any more.
Contributes to issue CURA-3497.
2017-04-12 10:00:44 +02:00