mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #3073 from pypeclub/chore/fix_testing_classes
Testing fixes
This commit is contained in:
commit
658d33052d
2 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue