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-40381: update test expectations in response to QG generation changes upstream #260

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/test_cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ def testSimpleQGraphSkipExisting_inputs(self):
taskFactory = AddTaskFactoryMock()

qgraph = fwk.makeGraph(self.pipeline, args)
self.assertEqual(len(qgraph.taskGraph), self.nQuanta)
# If all quanta are skipped, the task is not included in the graph.
self.assertEqual(len(qgraph.taskGraph), self.nQuanta - 1)
self.assertEqual(len(qgraph), self.nQuanta - 1)

# Ensure that the output run used in the graph is also used in
Expand Down Expand Up @@ -746,8 +747,9 @@ def testSimpleQGraphSkipExisting_outputs(self):
args.extend_run = True
qgraph = fwk.makeGraph(self.pipeline, args)

self.assertEqual(len(qgraph.taskGraph), self.nQuanta)
# Graph does not include quantum for first task
# First task has no remaining quanta, so is left out completely.
self.assertEqual(len(qgraph.taskGraph), self.nQuanta - 1)
# Graph does not include quantum for first task.
self.assertEqual(len(qgraph), self.nQuanta - 1)

# run whole thing
Expand Down
Loading