mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fixed unwanted pop
Counted without type.
This commit is contained in:
parent
e93fb7f4f3
commit
76d50cf6aa
1 changed files with 3 additions and 2 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue