mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
⚗️ fix linting
This commit is contained in:
parent
f147d28c52
commit
0ca2d25ef6
1 changed files with 9 additions and 2 deletions
|
|
@ -219,7 +219,9 @@ class TestGetProductName:
|
|||
def test_product_name_with_base_type(
|
||||
self, mock_prepare, mock_format, mock_get_tmpl
|
||||
):
|
||||
mock_get_tmpl.return_value = "{task[name]}_{product[basetype]}_{variant}"
|
||||
mock_get_tmpl.return_value = (
|
||||
"{task[name]}_{product[basetype]}_{variant}"
|
||||
)
|
||||
mock_prepare.return_value = {
|
||||
"task": {"name": "modeling"},
|
||||
"product": {"type": "model"},
|
||||
|
|
@ -267,7 +269,12 @@ class TestGetProductName:
|
|||
mock_get_project.return_value = {
|
||||
"taskTypes": [{"name": "Modeling", "shortName": "mdl"}]
|
||||
}
|
||||
mock_prepare.return_value = {"task": {"short": "mdl"}, "variant": "Main"}
|
||||
mock_prepare.return_value = {
|
||||
"task": {
|
||||
"short": "mdl"
|
||||
},
|
||||
"variant": "Main"
|
||||
}
|
||||
mock_format.return_value = "mdl_Main"
|
||||
|
||||
result = get_product_name(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue