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-24923: eliminate redundant class name & name requirement in butler command test cases #245

Merged
merged 5 commits into from May 17, 2020

Conversation

n8pease
Copy link
Contributor

@n8pease n8pease commented May 15, 2020

Class instance and instrument name can all be obtained from the
class name.

Use abstract property to ensure that the class name is provided.

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

One minor naming quibble. I would like you to split this into two commits though. As well as the change that you describe in the commit, you have also gone through and changed the case of rawIngestTask property. That's completely unrelated to the instrument class refactor so should be on a separate commit.

pass

@property
def instrument(self):
Copy link
Member

Choose a reason for hiding this comment

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

I think for clarity this should be instrumentClass.

def instrumentName():
"""Get the instrument name.
@property
def instrument(self):
Copy link
Member

Choose a reason for hiding this comment

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

instrument implies an instance of Instrument so I think instrumentClass would add clarity.

Class instance and instrument name can all be obtained from the
class name.

Use abstract property to ensure that the class name is provided.
@n8pease n8pease merged commit 6365820 into master May 17, 2020
@timj timj deleted the tickets/DM-24923 branch June 25, 2020 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants