mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Fixed unit test
This commit is contained in:
parent
a075b567b9
commit
a02eacd8bc
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue