mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Add some unhappy flow tests for rebuild
This commit is contained in:
parent
090b7ac225
commit
54740dd486
2 changed files with 23 additions and 1 deletions
|
@ -140,3 +140,26 @@ class TestComputeDisallowedAreasPrimeBlob:
|
|||
# In the The translation result is 25, -50 (due to the settings used)
|
||||
resulting_polygon = resulting_polygon.translate(25, -50)
|
||||
assert build_volume._computeDisallowedAreasPrimeBlob(12, [mocked_extruder_stack]) == {"0": [resulting_polygon]}
|
||||
|
||||
|
||||
class TestRebuild:
|
||||
def test_zeroWidthHeightDepth(self, build_volume: BuildVolume):
|
||||
build_volume.rebuild()
|
||||
assert build_volume.getMeshData() is None
|
||||
|
||||
def test_engineIsNotRead(self, build_volume: BuildVolume):
|
||||
build_volume.setWidth(10)
|
||||
build_volume.setHeight(10)
|
||||
build_volume.setDepth(10)
|
||||
build_volume.rebuild()
|
||||
assert build_volume.getMeshData() is None
|
||||
|
||||
def test_noGlobalStack(self, build_volume: BuildVolume):
|
||||
build_volume.setWidth(10)
|
||||
build_volume.setHeight(10)
|
||||
build_volume.setDepth(10)
|
||||
# Fake the the "engine is created callback"
|
||||
build_volume._onEngineCreated()
|
||||
build_volume.rebuild()
|
||||
assert build_volume.getMeshData() is None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue