Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Maya: ingest expected testing files #5785

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//Maya 2019 Project Definition

workspace -fr "shaders" "renderData/shaders";
workspace -fr "images" "renders";
workspace -fr "mayaAscii" "";
workspace -fr "particles" "particles";
workspace -fr "mayaBinary" "";
workspace -fr "scene" "";
workspace -fr "alembicCache" "cache/alembic";
workspace -fr "renderData" "renderData";
workspace -fr "sourceImages" "sourceimages";
workspace -fr "fileCache" "cache/nCache";
8 changes: 8 additions & 0 deletions tests/integration/hosts/maya/test_publish_in_maya.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import os

import pytest

from tests.lib.assert_classes import DBAssert
from tests.integration.hosts.maya.lib import MayaLocalPublishTestClass

Expand Down Expand Up @@ -74,6 +78,10 @@ def test_db_asserts(self, dbcon, publish_finished):

assert not any(failures)

@pytest.fixture(scope="module")
def expected_dir_base(self):
yield os.path.join(os.path.dirname(__file__), "expected", "files")


if __name__ == "__main__":
test_case = TestPublishInMaya()
8 changes: 5 additions & 3 deletions tests/lib/testing_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,14 @@ def publish_finished(self, dbcon, launched_app, download_test_data,
print("Publish finished")
yield True

@pytest.fixture(scope="module")
def expected_dir_base(self, download_test_data):
yield os.path.join(download_test_data, "expected")

def test_folder_structure_same(self, dbcon, publish_finished,
download_test_data, output_folder_url,
skip_compare_folders,
setup_only):
setup_only, expected_dir_base):
"""Check if expected and published subfolders contain same files.

Compares only presence, not size nor content!
Expand All @@ -358,8 +362,6 @@ def test_folder_structure_same(self, dbcon, publish_finished,
return

published_dir_base = output_folder_url
expected_dir_base = os.path.join(download_test_data,
"expected")

print("Comparing published:'{}' : expected:'{}'".format(
published_dir_base, expected_dir_base))
Expand Down
Loading