Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-28668: PipelineTask unit test framework bypasses dimensions checks #81

Merged
merged 1 commit into from
Jun 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions tests/test_apdbMetricTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def setUp(self):
config=self.task.config)

def _prepareQuantum(self, task):
inputId = {
globalId = {
"instrument": self.CAMERA_ID,
}
detectorId = {
"instrument": self.CAMERA_ID,
"visit": self.VISIT_ID,
"detector": self.CHIP_ID,
Expand All @@ -117,11 +120,11 @@ def _prepareQuantum(self, task):
# task.config not persistable if it refers to a local class
# We don't actually use the persisted config, so just make a new one
info = task.ConfigClass()
butler.put(info, "apdb_marker", inputId)
butler.put(info, "apdb_marker", detectorId)

quantum = testUtils.makeQuantum(
task, butler, inputId,
{"dbInfo": [inputId], "measurement": inputId})
task, butler, globalId,
{"dbInfo": [detectorId], "measurement": globalId})

return (butler, quantum, info)

Expand Down