Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.editor
Commits
7b324b1d
Commit
7b324b1d
authored
Oct 04, 2019
by
Samuel GAIST
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[widgets][assetwidget] Update new experiment editing setup since the asset is now created
parent
05bdefcb
Pipeline
#34028
failed with stage
in 2 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
beat/editor/test/test_assetwidget.py
beat/editor/test/test_assetwidget.py
+1
-4
beat/editor/widgets/assetwidget.py
beat/editor/widgets/assetwidget.py
+4
-2
No files found.
beat/editor/test/test_assetwidget.py
View file @
7b324b1d
...
...
@@ -226,10 +226,7 @@ class TestAssetWidget:
asset_model
.
prefix_path
=
test_prefix
target_name
=
f"
{
user
}
/
{
toolchain_name
}
/
{
asset_name
}
"
assert
target_name
not
in
asset_model
.
stringList
()
with
pytest
.
raises
(
ValueError
):
assert
not
os
.
path
.
exists
(
asset_model
.
json_path
(
target_name
))
assert
target_name
in
asset_model
.
stringList
()
assert
asset_widget
.
save_button
.
isEnabled
()
qtbot
.
mouseClick
(
asset_widget
.
save_button
,
QtCore
.
Qt
.
LeftButton
)
...
...
beat/editor/widgets/assetwidget.py
View file @
7b324b1d
...
...
@@ -282,12 +282,14 @@ class AssetWidget(QWidget):
asset
,
json_data
=
editor
.
createNewAsset
()
if
asset
and
json_data
:
self
.
current_asset
=
asset
# There's no file created yet
self
.
__clear_watcher
()
self
.
current_asset
=
asset
self
.
__update_content
(
json_data
)
self
.
current_editor
.
setDirty
()
self
.
save_button
.
setEnabled
(
True
)
self
.
__update_editors_icon
(
False
)
self
.
watcher
.
addPath
(
asset
.
declaration_path
)
self
.
currentAssetChanged
.
emit
(
asset
)
elif
asset
:
self
.
loadAsset
(
asset
)
...
...
Write
Preview
Markdown
is supported
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