mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Fix - missing extension for new workfile
This commit is contained in:
parent
3fa0b39df1
commit
d48fdaeceb
4 changed files with 36 additions and 17 deletions
|
|
@ -13,7 +13,7 @@ class LaunchFoundryAppsWindows(PreLaunchHook):
|
||||||
|
|
||||||
# Should be as last hook because must change launch arguments to string
|
# Should be as last hook because must change launch arguments to string
|
||||||
order = 1000
|
order = 1000
|
||||||
app_groups = ["nuke", "nukex", "hiero", "nukestudio"]
|
app_groups = ["nuke", "nukex", "hiero", "nukestudio", "aftereffects"]
|
||||||
platforms = ["windows"]
|
platforms = ["windows"]
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7e5efd6885330d84bb8495975bcab84df49bfa3d
|
Subproject commit e37f4f92ed25f89c870fdcb7f9538da7d0d7de90
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
import pytest
|
import pytest
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import logging
|
||||||
|
|
||||||
from tests.lib.testing_classes import PublishTest
|
from tests.lib.testing_classes import PublishTest
|
||||||
|
|
||||||
|
log = logging.getLogger("test_publish_in_nuke")
|
||||||
|
|
||||||
|
|
||||||
class TestPublishInNuke(PublishTest):
|
class TestPublishInNuke(PublishTest):
|
||||||
"""Basic test case for publishing in Nuke
|
"""Basic test case for publishing in Nuke
|
||||||
|
|
@ -21,11 +24,11 @@ class TestPublishInNuke(PublishTest):
|
||||||
PERSIST = True
|
PERSIST = True
|
||||||
|
|
||||||
TEST_FILES = [
|
TEST_FILES = [
|
||||||
("1Bciy2pCwMKl1UIpxuPnlX_LHMo_Xkq0K", "test_Nuke_publish.zip", "")
|
("1635L4gww9nEkP-1EclfWXNdeDuRjDhey", "test_Nuke_publish.zip", "")
|
||||||
]
|
]
|
||||||
|
|
||||||
APP = "Nuke"
|
APP = "nuke"
|
||||||
APP_VARIANT = "12"
|
APP_VARIANT = "12-2"
|
||||||
|
|
||||||
APP_NAME = "{}/{}".format(APP, APP_VARIANT)
|
APP_NAME = "{}/{}".format(APP, APP_VARIANT)
|
||||||
|
|
||||||
|
|
@ -37,26 +40,42 @@ class TestPublishInNuke(PublishTest):
|
||||||
|
|
||||||
Maya expects workfile in proper folder, so copy is done first.
|
Maya expects workfile in proper folder, so copy is done first.
|
||||||
"""
|
"""
|
||||||
src_path = os.path.join(download_test_data,
|
print("last_workfile_path")
|
||||||
"input",
|
log.info("log last_workfile_path")
|
||||||
"workfile",
|
src_path = os.path.join(
|
||||||
"test_project_test_asset_TestTask_v001.psd")
|
download_test_data,
|
||||||
|
"input",
|
||||||
|
"workfile",
|
||||||
|
"test_project_test_asset_CompositingInNuke_v001.nk")
|
||||||
dest_folder = os.path.join(download_test_data,
|
dest_folder = os.path.join(download_test_data,
|
||||||
self.PROJECT,
|
self.PROJECT,
|
||||||
self.ASSET,
|
self.ASSET,
|
||||||
"work",
|
"work",
|
||||||
self.TASK)
|
self.TASK)
|
||||||
os.makedirs(dest_folder)
|
os.makedirs(dest_folder)
|
||||||
dest_path = os.path.join(dest_folder,
|
dest_path = os.path.join(
|
||||||
"test_project_test_asset_TestTask_v001.psd")
|
dest_folder, "test_project_test_asset_CompositingInNuke_v001.nk")
|
||||||
shutil.copy(src_path, dest_path)
|
shutil.copy(src_path, dest_path)
|
||||||
|
|
||||||
yield dest_path
|
yield dest_path
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def startup_scripts(self, monkeypatch_session, download_test_data):
|
def startup_scripts(self, monkeypatch_session, download_test_data):
|
||||||
"""Points Maya to userSetup file from input data"""
|
"""Points Nuke to userSetup file from input data"""
|
||||||
pass
|
print("startup_scripts")
|
||||||
|
log.info("log startup_scripts")
|
||||||
|
startup_path = os.path.join(download_test_data,
|
||||||
|
"input",
|
||||||
|
"startup")
|
||||||
|
startup_path = "C:\\projects\\test_nuke_publish\\input\\startup"
|
||||||
|
original_pythonpath = os.environ.get("NUKE_PATH")
|
||||||
|
monkeypatch_session.setenv("NUKE_PATH",
|
||||||
|
"{}{}{}".format(original_pythonpath,
|
||||||
|
os.pathsep,
|
||||||
|
startup_path))
|
||||||
|
print("NUKE_PATH:: {}{}{}".format(startup_path,
|
||||||
|
os.pathsep,
|
||||||
|
original_pythonpath))
|
||||||
|
|
||||||
def test_db_asserts(self, dbcon, publish_finished):
|
def test_db_asserts(self, dbcon, publish_finished):
|
||||||
"""Host and input data dependent expected results in DB."""
|
"""Host and input data dependent expected results in DB."""
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ class DBHandler:
|
||||||
if collection:
|
if collection:
|
||||||
if not db_name:
|
if not db_name:
|
||||||
raise ValueError("db_name must be present")
|
raise ValueError("db_name must be present")
|
||||||
coll_part = "--nsInclude={}.{}".format(db_name, collection)
|
coll_part = "--collection={}".format(collection)
|
||||||
query = "\"{}\" --uri=\"{}\" --out={} {} {}".format(
|
query = "\"{}\" --uri=\"{}\" --out={} {} {}".format(
|
||||||
"mongodump", uri, output_path, db_part, coll_part
|
"mongodump", uri, output_path, db_part, coll_part
|
||||||
)
|
)
|
||||||
|
|
@ -220,11 +220,11 @@ class DBHandler:
|
||||||
|
|
||||||
return query
|
return query
|
||||||
|
|
||||||
#handler = DBHandler(uri="mongodb://localhost:27017")
|
handler = DBHandler(uri="mongodb://localhost:27017")
|
||||||
#
|
#
|
||||||
#backup_dir = "c:\\projects\\test_nuke_publish\\input\\dumps"
|
backup_dir = "c:\\projects\\test_nuke_publish\\input\\dumps"
|
||||||
# #
|
# #
|
||||||
#handler.backup_to_dump("avalon", backup_dir, True, collection="test_project")
|
handler.backup_to_dump("avalon", backup_dir, True, collection="test_project")
|
||||||
#handler.setup_from_dump("test_db", backup_dir, True, db_name_out="avalon", collection="test_project")
|
#handler.setup_from_dump("test_db", backup_dir, True, db_name_out="avalon", collection="test_project")
|
||||||
# # handler.setup_from_sql_file("test_db", "c:\\projects\\sql\\item.sql",
|
# # handler.setup_from_sql_file("test_db", "c:\\projects\\sql\\item.sql",
|
||||||
# # collection="test_project",
|
# # collection="test_project",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue