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-40392: Update unit test after fixing QuantumGraph.updateRun #261

Merged
merged 1 commit into from
Aug 19, 2023
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
13 changes: 3 additions & 10 deletions tests/test_cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
Registry,
)
from lsst.daf.butler.core.datasets.type import DatasetType
from lsst.daf.butler.registry import ConflictingDefinitionError, RegistryConfig
from lsst.daf.butler.registry import RegistryConfig
from lsst.pipe.base import (
Instrument,
Pipeline,
Expand Down Expand Up @@ -590,15 +590,8 @@ def test_simple_qgraph_qbb(self):
fwk.runGraphQBB(taskFactory, args)

# Transfer the datasets to the butler.
# TODO: DM-40392
# This will fail because the UUIDs are not updated by updateRun
with self.assertRaises(ConflictingDefinitionError):
n2 = transfer_from_graph(temp_graph.name, self.root, True, False, False)

# For reasons that have to be investigated the number of
# outputs the second time around is only 21.
self.assertEqual(n2, 31)
self.assertEqual(n1, n2)
n2 = transfer_from_graph(temp_graph.name, self.root, True, False, False)
self.assertEqual(n1, n2)

def testEmptyQGraph(self):
"""Test that making an empty QG produces the right error messages."""
Expand Down