mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 11:23:16 +08:00
Fixed unit test
This commit is contained in:
parent
a075b567b9
commit
a02eacd8bc
@ -82,7 +82,7 @@ def test_checkShape():
|
|||||||
assert points3 > points
|
assert points3 > points
|
||||||
|
|
||||||
|
|
||||||
## After placing an object on a location that location should give more penalty points
|
## Check that placing an object on occupied place returns None.
|
||||||
def test_checkShape_place():
|
def test_checkShape_place():
|
||||||
ar = Arrange(30, 30, 15, 15)
|
ar = Arrange(30, 30, 15, 15)
|
||||||
ar.centerFirst()
|
ar.centerFirst()
|
||||||
@ -92,7 +92,7 @@ def test_checkShape_place():
|
|||||||
ar.place(3, 6, shape_arr)
|
ar.place(3, 6, shape_arr)
|
||||||
points2 = ar.checkShape(3, 6, shape_arr)
|
points2 = ar.checkShape(3, 6, shape_arr)
|
||||||
|
|
||||||
assert points2 > points
|
assert points2 is None
|
||||||
|
|
||||||
|
|
||||||
## Test the whole sequence
|
## Test the whole sequence
|
||||||
|
Loading…
x
Reference in New Issue
Block a user