Remco Burema
d980d28300
Fix unit-test after merge.
conan-package / conan-package (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
2025-10-22 17:20:04 +02:00
Joey de l'Arago
f52638ca75
Update extrudermanager in tests to mock Application.
...
CURA-9793
2022-12-12 14:06:45 +01:00
Jaime van Kessel
2d396a81c5
Remove unneeded pycapsule imports
2021-05-10 16:53:16 +02:00
Ghostkeeper
6abfa38838
More fixes for PyCapsule_GetPointer race condition
...
One of the weirdest errors out there, and as far as I know we're the only ones suffering from it, due to having multiple packages of Python bindings created with Sip as well as having PyQt and different threads.
2020-10-16 14:26:27 +02:00
Ghostkeeper
26cb661240
Fix PyCapsule_GetPointer error when running tests
...
This obscure error happens when a module with Sip bindings is being imported after PyQt. Due to a clash with the Sip versions or something, it then fails on the custom module. Import all of our custom modules with Sip bindings first.
2020-10-16 14:18:17 +02:00
Remco Burema
02516f0f47
Refactor: Move common fixtures to 'conftest'.
...
Part of CURA-6091.
2019-06-21 14:58:55 +02:00
Jaime van Kessel
804e2060ea
Re-added the imports to the conftest
...
These are really really needed, otherwise the tests wont run. I've added a few
more comments to further stress the importance of these.
CURA-6057
2019-03-27 17:20:17 +01:00
Lipu Fei
dfc53d3604
Move MachineActionManager into cura.UI module
2019-03-20 09:10:48 +01:00
Lipu Fei
89cb67017f
Add unit test for addDefaultMachineActions()
...
CURA-5812
2018-10-23 08:49:23 +02:00
Ghostkeeper
f8da8c14e5
Fix running tests with PyQt 5.11
...
This was causing the test runner to crash.
2018-09-14 11:38:14 +02:00
Lipu Fei
8582a1ba1a
Mock application in unit tests
2018-08-23 17:00:57 +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
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