Skip to content
GitLab
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
07b70cfb
Commit
07b70cfb
authored
Sep 16, 2019
by
Samuel GAIST
Browse files
[tests] Change super calls to parameter-less version
parent
e6dd28ab
Pipeline
#33292
passed with stage
in 13 minutes and 43 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/test/test_databaseeditor.py
View file @
07b70cfb
...
...
@@ -91,9 +91,7 @@ class ParameterTypeTestDelegate(ParameterTypeDelegate):
def
createEditor
(
self
,
parent
,
options
,
index
):
"""Force commit to model on index change, otherwise testing won't work"""
combobox
=
super
(
ParameterTypeTestDelegate
,
self
).
createEditor
(
parent
,
options
,
index
)
combobox
=
super
().
createEditor
(
parent
,
options
,
index
)
combobox
.
currentIndexChanged
.
connect
(
lambda
:
self
.
commitData
.
emit
(
combobox
))
return
combobox
...
...
beat/editor/test/test_editors.py
View file @
07b70cfb
...
...
@@ -42,7 +42,7 @@ class MockAssetEditor(AbstractAssetEditor):
"""
def
__init__
(
self
,
parent
=
None
):
super
(
MockAssetEditor
,
self
).
__init__
(
AssetType
.
UNKNOWN
,
parent
)
super
().
__init__
(
AssetType
.
UNKNOWN
,
parent
)
self
.
dataformat_model
=
None
self
.
add_field_button
=
QPushButton
(
self
.
tr
(
"Add"
))
self
.
layout
().
addWidget
(
self
.
add_field_button
)
...
...
beat/editor/test/test_scrollwidget.py
View file @
07b70cfb
...
...
@@ -42,7 +42,7 @@ class ChangeWidget(QWidget):
dataChanged
=
pyqtSignal
()
def
__init__
(
self
,
parent
=
None
):
super
(
ChangeWidget
,
self
).
__init__
(
parent
)
super
().
__init__
(
parent
)
self
.
_prefix_path
=
None
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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