Skip to content

Commit

Permalink
feat(SC-686): Added comment field to Group class
Browse files Browse the repository at this point in the history
  • Loading branch information
abnepc committed Nov 10, 2023
1 parent bdb8030 commit dbc0b87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions epyqlib/pm/parametermodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,13 @@ class Group(epyqlib.treenode.TreeNode):
),
),
)
comment = attr.ib(
default=None,
converter=epyqlib.attrsmodel.to_str_or_none,
metadata=graham.create_metadata(
field=marshmallow.fields.String(allow_none=True),
),
)
uuid = epyqlib.attrsmodel.attr_uuid()

def __attrs_post_init__(self):
Expand Down
1 change: 0 additions & 1 deletion epyqlib/tests/test_attrsmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def merge(name, *types):
),
((Parameter, "value"),),
merge("uuid", *types.types.values()),
((Group, "comment"),),
)


Expand Down

0 comments on commit dbc0b87

Please sign in to comment.