Skip to content
Snippets Groups Projects
Commit e2cb78d1 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[widgets][libraryeditor] Add missing documentation

Test cleanup
parent a7451493
No related branches found
No related tags found
1 merge request!65179 dataformat editor
......@@ -33,6 +33,7 @@ class TestLibraryEditor:
def test_load_and_dump(self, qtbot, test_prefix):
reference_json = {"description": "test", "uses": {}}
editor = LibraryEditor()
qtbot.addWidget(editor)
editor.set_prefix_root(test_prefix)
editor.load_json(reference_json)
......@@ -42,6 +43,7 @@ class TestLibraryEditor:
faulty_json = {"description": "test", "uses": {"alias": "test/dummy/1"}}
reference_json = {"description": "test", "uses": {}}
editor = LibraryEditor()
qtbot.addWidget(editor)
editor.set_prefix_root(test_prefix)
editor.load_json(faulty_json)
......
......@@ -34,7 +34,14 @@ from .libraries import LibrariesWidget
@frozen
class LibraryEditor(AbstractAssetEditor):
"""Editor for the Library asset"""
def __init__(self, parent=None):
"""Constructor
:param parent QWidget: parent of this widget
"""
super(LibraryEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Library"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment