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-12041: CameraMapper: fix identification of recipe overrides #73

Merged
merged 1 commit into from Nov 10, 2017

Conversation

PaulPrice
Copy link
Contributor

The test is currently being done at the level of the storage type, but it
should be done one level below that (because our compression recipes are
appropriate for the same storage type for which other compression recipes
are defined, and that's how it should be).

@PaulPrice PaulPrice requested a review from r-owen November 9, 2017 04:16
Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

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

Looks good except for one possible duplicate line.

Is there a way to add a test for this code to the unit tests?

if intersection:
raise RuntimeError("Recipes provided in %s section %s may not override those in %s: %s" %
(supplementsFile, entry, recipesFile, intersection))
recipes.update(supplements)

self._writeRecipes = {}
validationMenu = {'FitsStorage': validateRecipeFitsStorage, }
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you delete this line now that you have inserted a copy before if os.path.exists...?

The test is currently being done at the level of the storage type, but it
should be done one level below that (because our compression recipes are
appropriate for the same storage type for which other compression recipes
are defined, and that's how it should be).
@PaulPrice PaulPrice merged commit 5ffe6a8 into master Nov 10, 2017
@ktlim ktlim deleted the tickets/DM-12041 branch August 25, 2018 06:44
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