This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3610 from pypeclub/bugfix/OP-3684_Refactored-inte…
…grate-doesnt-work-for-AE-multi-frame-publishes AfterEffects: refactored integrate doesnt work formulti frame publishes
- Loading branch information
Showing
4 changed files
with
81 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
tests/integration/hosts/aftereffects/test_publish_in_aftereffects_multiframe.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import logging | ||
|
||
from tests.lib.assert_classes import DBAssert | ||
from tests.integration.hosts.aftereffects.lib import AfterEffectsTestClass | ||
|
||
log = logging.getLogger("test_publish_in_aftereffects") | ||
|
||
|
||
class TestPublishInAfterEffects(AfterEffectsTestClass): | ||
"""Basic test case for publishing in AfterEffects | ||
Should publish 5 frames | ||
""" | ||
PERSIST = True | ||
|
||
TEST_FILES = [ | ||
("12aSDRjthn4X3yw83gz_0FZJcRRiVDEYT", | ||
"test_aftereffects_publish_multiframe.zip", | ||
"") | ||
] | ||
|
||
APP = "aftereffects" | ||
APP_VARIANT = "" | ||
|
||
APP_NAME = "{}/{}".format(APP, APP_VARIANT) | ||
|
||
TIMEOUT = 120 # publish timeout | ||
|
||
def test_db_asserts(self, dbcon, publish_finished): | ||
"""Host and input data dependent expected results in DB.""" | ||
print("test_db_asserts") | ||
failures = [] | ||
|
||
failures.append(DBAssert.count_of_types(dbcon, "version", 2)) | ||
|
||
failures.append( | ||
DBAssert.count_of_types(dbcon, "version", 0, name={"$ne": 1})) | ||
|
||
failures.append( | ||
DBAssert.count_of_types(dbcon, "subset", 1, | ||
name="imageMainBackgroundcopy")) | ||
|
||
failures.append( | ||
DBAssert.count_of_types(dbcon, "subset", 1, | ||
name="workfileTest_task")) | ||
|
||
failures.append( | ||
DBAssert.count_of_types(dbcon, "subset", 1, | ||
name="reviewTesttask")) | ||
|
||
failures.append( | ||
DBAssert.count_of_types(dbcon, "representation", 4)) | ||
|
||
additional_args = {"context.subset": "renderTestTaskDefault", | ||
"context.ext": "png"} | ||
failures.append( | ||
DBAssert.count_of_types(dbcon, "representation", 1, | ||
additional_args=additional_args)) | ||
|
||
assert not any(failures) | ||
|
||
|
||
if __name__ == "__main__": | ||
test_case = TestPublishInAfterEffects() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters