mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -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
|
@ -10,10 +10,10 @@ class GCodeListDecorator(SceneNodeDecorator):
|
|||
def getGCodeList(self) -> List[str]:
|
||||
return self._gcode_list
|
||||
|
||||
def setGCodeList(self, list: List[str]):
|
||||
def setGCodeList(self, list: List[str]) -> None:
|
||||
self._gcode_list = list
|
||||
|
||||
def __deepcopy__(self, memo) -> "GCodeListDecorator":
|
||||
copied_decorator = GCodeListDecorator()
|
||||
copied_decorator.setGCodeList(self.getGCodeList())
|
||||
return copied_decorator
|
||||
return copied_decorator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue