mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Add test for gcodeListDecorator
It's super simple, but hey, it's also easy to write.
This commit is contained in:
parent
c7e3b1dcaf
commit
67a63e7954
2 changed files with 18 additions and 2 deletions
16
tests/TestGCodeListDecorator.py
Normal file
16
tests/TestGCodeListDecorator.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from cura.Scene.GCodeListDecorator import GCodeListDecorator
|
||||
|
||||
|
||||
def test_setAndGetList():
|
||||
decorator = GCodeListDecorator()
|
||||
|
||||
decorator.setGCodeList(["Test"])
|
||||
assert decorator.getGCodeList() == ["Test"]
|
||||
|
||||
|
||||
def test_copyGCodeDecorator():
|
||||
decorator = GCodeListDecorator()
|
||||
decorator.setGCodeList(["Test"])
|
||||
import copy
|
||||
copied_decorator = copy.deepcopy(decorator)
|
||||
assert decorator.getGCodeList() == copied_decorator.getGCodeList()
|
Loading…
Add table
Add a link
Reference in a new issue