Skip to content

Commit

Permalink
Use the new butler.exists() API
Browse files Browse the repository at this point in the history
Replacing butler.datasetExists()
  • Loading branch information
timj committed Jun 7, 2023
1 parent e026563 commit 98b4910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_testUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,12 @@ def testRunTestQuantumVisitWithRun(self):

# Can we use runTestQuantum to verify that task.run got called with
# correct inputs/outputs?
self.assertTrue(self.butler.datasetExists("VisitOutA", dataId))
self.assertTrue(self.butler.exists("VisitOutA", dataId))
self.assertEqual(
self.butler.get("VisitOutA", dataId),
butlerTests.MetricsExample(data=(data["VisitA"] + data["VisitB"])),
)
self.assertTrue(self.butler.datasetExists("VisitOutB", dataId))
self.assertTrue(self.butler.exists("VisitOutB", dataId))
self.assertEqual(
self.butler.get("VisitOutB", dataId),
butlerTests.MetricsExample(data=(data["VisitA"] * max(data["VisitB"]))),
Expand Down Expand Up @@ -465,7 +465,7 @@ def testRunTestQuantumPatchWithRun(self):
inB = data["PatchB"][0][1]
for dataset in data["PatchA"]:
patchId = dataset[0]
self.assertTrue(self.butler.datasetExists("PatchOut", patchId))
self.assertTrue(self.butler.exists("PatchOut", patchId))
self.assertEqual(
self.butler.get("PatchOut", patchId), butlerTests.MetricsExample(data=(dataset[1] + inB))
)
Expand Down

0 comments on commit 98b4910

Please sign in to comment.