mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 05:39:37 +08:00
17 lines
454 B
Python
17 lines
454 B
Python
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()
|