Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
be3508b3
Commit
be3508b3
authored
May 01, 2019
by
Samuel GAIST
Browse files
[test][editors] Fix MockAssetEditor initialization
parent
6de448ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/test/test_editors.py
View file @
be3508b3
...
...
@@ -32,6 +32,7 @@ from PyQt5.QtWidgets import QPushButton
from
..widgets.editor
import
AbstractAssetEditor
from
..widgets.field
import
FieldWidget
from
..backend.assetmodel
import
AssetType
class
MockAssetEditor
(
AbstractAssetEditor
):
...
...
@@ -40,7 +41,7 @@ class MockAssetEditor(AbstractAssetEditor):
"""
def
__init__
(
self
,
parent
=
None
):
super
(
MockAssetEditor
,
self
).
__init__
(
parent
)
super
(
MockAssetEditor
,
self
).
__init__
(
AssetType
.
UNKNOWN
,
parent
)
self
.
dataformat_model
=
None
self
.
add_field_button
=
QPushButton
(
self
.
tr
(
"Add"
))
self
.
layout
().
addWidget
(
self
.
add_field_button
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment