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
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
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
Ghostkeeper
f579b5f304
Clean up temporary files after test
...
If the test fails to remove the temporary file, this cleans up after it.
Contributes to issue CURA-3497.
2017-03-23 17:22:10 +01:00
Ghostkeeper
b18c72bbbf
Remove unused import
...
This was replaced with mocks, if I recall correctly.
Contributes to issue CURA-3497.
2017-03-23 16:48:38 +01:00
Ghostkeeper
053974bc96
Add test to see if legacy files are renamed
...
The test seems to fail at the moment. No new file is created.
Contributes to issue CURA-3497.
2017-03-23 16:47:37 +01:00
Ghostkeeper
e521f6b38d
Remove unnecessary findContainer replacement
...
By default the patch context returns mock objects anyway, so no need to actually make a function that does that.
Contributes to issue CURA-3497.
2017-03-23 16:35:11 +01:00
Ghostkeeper
96c7a4ed77
Remove unused variable
...
This was changed earlier that it doesn't return the same mock every time but creates a new mock in findContainer. So the single mock that used to be returned every time is no longer needed.
Contributes to issue CURA-3497.
2017-03-23 16:16:32 +01:00
Ghostkeeper
60b6b72912
Rename some_material to some_instance
...
This way we can semantically use it in place of other instances on the stack as well without changing our test.
Contributes to issue CURA-3497.
2017-03-22 15:51:45 +01:00
Ghostkeeper
007f764471
Don't let a test remove files from hard disk
...
This test does not test the removing of these files. In general, to make a test run fast, it should not perform any disk operations.
Contributes to issue CURA-3497.
2017-03-22 15:47:15 +01:00
Ghostkeeper
49fad35d28
Add test for global stack getting user changes
...
Tests fail right now because running the test actually deletes files. Got to fix that.
Contributes to issue CURA-3497.
2017-03-22 15:40:13 +01:00
Ghostkeeper
c5768d89dc
Remove debug print
...
Contributes to issue CURA-3497.
2017-03-22 15:12:46 +01:00
Ghostkeeper
c91765c1ae
Add test for type of loaded container stacks
...
This tests if container stacks, when loading, get implemented with the correct class: Either an extruder stack or a global stack.
Contributes to issue CURA-3497.
2017-03-22 13:46:14 +01:00