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-39653: Prompt processing unit tests have bitrotted #70

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

kfindeisen
Copy link
Member

@kfindeisen kfindeisen commented Jun 13, 2023

This PR fixes an API removal (on lsst/daf_butler#841) that was preventing prompt_prototype from building.

Some of the unit tests created test DatasetRef objects that don't
correspond to an existing object. Fortunately, providing a nonexistent
run works for now.
Copy link
Contributor

@ktlim ktlim left a comment

Choose a reason for hiding this comment

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

LGTM. I didn't check to see if the dummy run already existed or is never used.

@kfindeisen
Copy link
Member Author

No, "dummy" doesn't exist (I hope that won't cause another breakage later!). The test in question manipulates collections of DatasetRef but doesn't actually try to use them.

@timj
Copy link
Member

timj commented Jun 13, 2023

To confirm, you can create a DatasetRef with any run you want. It only becomes a problem if you try to use it in a butler.

The new Butler.exists returns False instead of raising, so some
surrounding code has been changed to reflect that.
@kfindeisen kfindeisen merged commit ec0e094 into main Jun 13, 2023
1 check passed
@kfindeisen kfindeisen deleted the tickets/DM-39653 branch June 13, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants