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

Commit

Permalink
Merge pull request #3011 from pypeclub/chore/default_workfile_subset_…
Browse files Browse the repository at this point in the history
…name

General: default workfile subset name for workfile
  • Loading branch information
kalisp authored Apr 6, 2022
2 parents 9a15ad8 + 77d017b commit ab3fae2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
9 changes: 9 additions & 0 deletions openpype/settings/defaults/project_settings/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@
"tasks": [],
"template": "{family}{variant}"
},
{
"families": [
"workfile"
],
"hosts": [],
"task_types": [],
"tasks": [],
"template": "{family}{Task}"
},
{
"families": [
"render"
Expand Down
18 changes: 9 additions & 9 deletions tests/lib/assert_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ def count_of_types(cls, dbcon, queried_type, expected, **kwargs):
else:
args[key] = val

msg = None
no_of_docs = dbcon.count_documents(args)
if expected != no_of_docs:
msg = "Not expected no of versions. "\
"Expected {}, found {}".format(expected, no_of_docs)

args.pop("type")
detail_str = " "
if args:
detail_str = " with {}".format(args)
detail_str = " with '{}'".format(args)

msg = None
no_of_docs = dbcon.count_documents(args)
if expected != no_of_docs:
msg = "Not expected no of '{}'{}."\
"Expected {}, found {}".format(queried_type,
detail_str,
expected, no_of_docs)

status = "successful"
if msg:
Expand All @@ -42,7 +44,5 @@ def count_of_types(cls, dbcon, queried_type, expected, **kwargs):
print("Comparing count of {}{} {}".format(queried_type,
detail_str,
status))
if msg:
print(msg)

return msg

0 comments on commit ab3fae2

Please sign in to comment.