Skip to content

Commit

Permalink
Use public Registry.refresh() now that it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Jan 11, 2021
1 parent 0cf2aab commit a0f2fe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def testSimpleQGraphReplaceRun(self):
self.assertEqual(taskFactory.countExec, nQuanta)

# need to refresh collections explicitly (or make new butler/registry)
butler.registry._collections.refresh()
butler.registry.refresh()
collections = set(butler.registry.queryCollections(...))
self.assertEqual(collections, {"test", "output", "output/run1"})

Expand All @@ -539,7 +539,7 @@ def testSimpleQGraphReplaceRun(self):
args.output_run = "output/run2"
fwk.runPipeline(copy.deepcopy(qgraph), taskFactory, args)

butler.registry._collections.refresh()
butler.registry.refresh()
collections = set(butler.registry.queryCollections(...))
self.assertEqual(collections, {"test", "output", "output/run1", "output/run2"})

Expand All @@ -558,7 +558,7 @@ def testSimpleQGraphReplaceRun(self):
args.output_run = "output/run3"
fwk.runPipeline(copy.deepcopy(qgraph), taskFactory, args)

butler.registry._collections.refresh()
butler.registry.refresh()
collections = set(butler.registry.queryCollections(...))
self.assertEqual(collections, {"test", "output", "output/run1", "output/run2", "output/run3"})

Expand All @@ -581,7 +581,7 @@ def testSimpleQGraphReplaceRun(self):
args.output_run = "output/run4"
fwk.runPipeline(copy.deepcopy(qgraph), taskFactory, args)

butler.registry._collections.refresh()
butler.registry.refresh()
collections = set(butler.registry.queryCollections(...))
# output/run3 should disappear now
self.assertEqual(collections, {"test", "output", "output/run1", "output/run2", "output/run4"})
Expand Down

0 comments on commit a0f2fe8

Please sign in to comment.