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-41235: Update test to use SqlRegistry instead of Registry #380

Merged
merged 1 commit into from Oct 26, 2023

Conversation

andy-slac
Copy link
Contributor

@andy-slac andy-slac commented Oct 25, 2023

Depends on lsst/daf_butler#898

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d943e6a) 82.49% compared to head (d20fc00) 82.47%.

❗ Current head d20fc00 differs from pull request most recent head 1f509c5. Consider uploading reports for the commit 1f509c5 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #380      +/-   ##
==========================================
- Coverage   82.49%   82.47%   -0.02%     
==========================================
  Files          92       92              
  Lines       10350    10351       +1     
  Branches     1951     1951              
==========================================
- Hits         8538     8537       -1     
- Misses       1471     1472       +1     
- Partials      341      342       +1     
Files Coverage Δ
tests/test_instrument.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -205,7 +206,7 @@ def test_dimension_packer_config_defaults(self):
"""
registry_config = RegistryConfig()
registry_config["db"] = "sqlite://"
registry = Registry.createFromConfig(registry_config)
registry = SqlRegistry.createFromConfig(registry_config)
self.instrument.register(registry)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose all our Instrument APIs are going to have to switch to using a Butler in the future.

@andy-slac andy-slac merged commit 6a81885 into main Oct 26, 2023
23 of 26 checks passed
@andy-slac andy-slac deleted the tickets/DM-41235 branch October 26, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants