Fix situation where _calculateMoveFromWallRadius could cause exception

This commit is contained in:
Jaime van Kessel 2019-06-07 17:21:28 +02:00
parent 4018c24b4c
commit f842769c1d
2 changed files with 6 additions and 3 deletions

View file

@ -255,9 +255,10 @@ class TestGetEdgeDisallowedSize:
def test_unknownAdhesion(self, build_volume: BuildVolume):
build_volume._global_container_stack = self.createMockedStack()
with patch("cura.Settings.ExtruderManager.ExtruderManager.getInstance"):
with pytest.raises(Exception):
#with pytest.raises(Exception):
# Since we don't have any adhesion set, this should break.
build_volume.getEdgeDisallowedSize()
build_volume.getEdgeDisallowedSize()
def test_oneAtATime(self, build_volume: BuildVolume):
build_volume._global_container_stack = self.createMockedStack()