Skip to content

Commit

Permalink
OP-2053 - fix counts in db_asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Dec 14, 2021
1 parent 148bb47 commit aa232b4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def startup_scripts(self, monkeypatch_session, download_test_data):
def test_db_asserts(self, dbcon, publish_finished):
"""Host and input data dependent expected results in DB."""
print("test_db_asserts")
assert 3 == dbcon.count_documents({"type": "version"}), \
assert 2 == dbcon.count_documents({"type": "version"}), \
"Not expected no of versions"

assert 0 == dbcon.count_documents({"type": "version",
Expand All @@ -81,18 +81,18 @@ def test_db_asserts(self, dbcon, publish_finished):
"modelMain subset must be present"

assert 1 == dbcon.count_documents({"type": "subset",
"name": "workfileTesttask"}), \
"name": "workfileTest_task"}), \
"workfileTesttask subset must be present"

assert 1 == dbcon.count_documents({"type": "subset",
"name": "reviewTesttask"}), \
"reviewTesttask subset must be present"

assert 6 == dbcon.count_documents({"type": "representation"}), \
assert 4 == dbcon.count_documents({"type": "representation"}), \
"Not expected no of representations"

assert 1 == dbcon.count_documents({"type": "representation",
"context.subset": "imageMainBackgroundcopy", # noqa E501
"context.subset": "renderTestTaskDefault", # noqa E501
"context.ext": "png"}), \
"Not expected no of representations with ext 'png'"

Expand Down

0 comments on commit aa232b4

Please sign in to comment.