Merge pull request #3073 from pypeclub/chore/fix_testing_classes

Testing fixes
This commit is contained in:
Petr Kalis 2022-04-20 12:50:16 +02:00 committed by GitHub
commit 658d33052d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -24,13 +24,14 @@ class DBAssert:
else:
args[key] = val
no_of_docs = dbcon.count_documents(args)
msg = None
args.pop("type")
detail_str = " "
if 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,

View file

@ -273,8 +273,6 @@ class PublishTest(ModuleUnitTest):
)
os.environ["AVALON_SCHEMA"] = schema_path
import openpype
openpype.install()
os.environ["OPENPYPE_EXECUTABLE"] = sys.executable
from openpype.lib import ApplicationManager