Skip to content

Commit

Permalink
Change test to assert_called_once_with.
Browse files Browse the repository at this point in the history
Debug assert_called_with_once
  • Loading branch information
morriscb committed Sep 25, 2020
1 parent c9e12e6 commit 6f6a268
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_createApFakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ def testRunQuantum(self):
{key: dataId for key in {"skyMap", "fakeCat"}})
run = testUtils.runTestQuantum(fakesTask, butler, quantum, True)
# Actual input dataset omitted for simplicity
run.assert_called_once()
# Smoke test that the full pipeline task actualy runs.
testUtils.runTestQuantum(fakesTask, butler, quantum, False)
run.assert_called_once_with(tractId=dataId["tract"], skyMap=self.simpleMap)
shutil.rmtree(root, ignore_errors=True)

def testRun(self):
Expand Down

0 comments on commit 6f6a268

Please sign in to comment.